Variable name size

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

Post Reply
echase
Posts: 429
Joined: Mon Jun 11, 2007 11:55 am
Has thanked: 49 times
Contact:

Variable name size

Post by echase »

I like to use long variable names, like read_input_voltage_portA, as it makes the variables easier to understand. Does this make the Hex code bigger? Or does it loose the long names during compilation and replace them all with something short and cryptic like Variable 1, Variable 2, instead of the names?

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Post by Benj »

Hello

The variable name will be replaced with an address in memory so dont worry about creating long variable names as they will not take up any more of the program space.

Post Reply