Convert a 'C' code into an assembly instructions in LPCXpresso IDE

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Convert a 'C' code into an assembly instructions in LPCXpresso IDE

2,384 次查看
himanshudoshi
Contributor III

Hello to all,

I would like to convert my C code into the corresponding assembly code while compiling and wanted a copy of that to be saved into the project directly. So, what setting can be applied to the project property in the IDE?

For example, a C code of Fibonacci series in an assembly language?

Can anybody help me out with that?

Thanking you in advance, 

Regards,

Himanshu

标记 (1)
0 项奖励
2 回复数

1,681 次查看
lpcxpresso_supp
NXP Employee
NXP Employee

See the FAQ : https://community.nxp.com/message/630600 

Regards,

LPCXpresso Support

0 项奖励

1,682 次查看
driesmoors
NXP Employee
NXP Employee

Hi,

LPCXpresso is using gcc for compilation. You can try adding the -S option to see the output of the compilation process (i.e. the assembler code). See Using the GNU Compiler Collection (GCC): Overall Options  (Press Page Down a few times to find the -S option.)  

Regards,
Dries.

0 项奖励