Author Topic: Memory efficient int to chars without division (bitshift OK) for binary bases.  (Read 13666 times)

0 Members and 1 Guest are viewing this topic.

Offline richardman

  • Frequent Contributor
  • **
  • Posts: 427
  • Country: us
Not just that array indexing is done as pointer addition, but it goes to the type system etc. but only compiler-heads need to know :-)

OK, so a C compiler implicitly converts the type of an array name 'a' from address of first element of 'a' to pointer to the base type of 'a'

EXCEPT in one instance. Name that instance  ;D
// richard http://imagecraft.com/
JumpStart C++ for Cortex (compiler/IDE/debugger): the fastest easiest way to get productive on Cortex-M.
Smart.IO: phone App for embedded systems with no app or wireless coding
 

Offline grumpydoc

  • Super Contributor
  • ***
  • Posts: 2905
  • Country: gb
EXCEPT in one instance. Name that instance  ;D
sizeof
 

Offline richardman

  • Frequent Contributor
  • **
  • Posts: 427
  • Country: us
// richard http://imagecraft.com/
JumpStart C++ for Cortex (compiler/IDE/debugger): the fastest easiest way to get productive on Cortex-M.
Smart.IO: phone App for embedded systems with no app or wireless coding
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf