Instruction Cycles to execute a variable

Status
Not open for further replies.

shaswat

Advanced Member level 4
Joined
Jul 2, 2013
Messages
115
Helped
1
Reputation
2
Reaction score
1
Trophy points
18
Visit site
Activity points
963
I am working on 16 bit micro-controller (MSP430f67791A) and using IAR compiler. My question is that someone tell me that in a 16 bit micro-controller, if you take a 8bit variable then the CPU would take more instruction cycle to execute it rather than a 16 bit variable.

After his words, I was totally confused and tried to find out on web but didn't find anything.

Does anyone have any idea about this??
 

MSP430 has instructions with byte access, they have the same number of instruction cycles indicated in the family reference as word accesses.

You could still consume more instruction cycles for byte varianbles if the compiler needs/wants to "transcribe" some byte operations by multiple instructions. Check the compiler listings if this is the case.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…