Personal tools
You are here: Home Forums SH Family Generating assembly code in SH 2A.

Generating assembly code in SH 2A.

Up to SH Family

Generating assembly code in SH 2A.

Posted by vinnie at March 03. 2008


Hallo All,


             Can anyone help me how to generate an assembly code in HEW from program written in C or C++. Actually I have a project developed for EEMBC benchmarks written in C but for analizing the performance of SH 2A 7201 and SH 2A 7206 I have to generate the assembly code and see how the compiler is performing with the target (SH 2A).


If I have the microcontroller I can see it using dissambly window after connecting using E10 emulator but as I don't have the target is there any way that we can get assembly code generated by the HEW by clicking on some options? please help me as soon as possible.



Best Regards,

vinnie.


Re: Generating assembly code in SH 2A.

Posted by sodovkar at March 26. 2008

Hi Vinnie,

In HEW you have ability to generate either object and assembler code as output. Choose Build->SuperH RISC Engine Standard Toolchain

Select "C/C++" tab and choose "Category: Object".  Now you can see selected menu "Output file type :".

Now, you can choose output file type from this menu, and you also have ability to choose files affected by new setting of output by setting category or particullar files in left part of window.

Hope this helps.

Regards S.

Re: Generating assembly code in SH 2A.

Posted by FrankL at March 27. 2008

What about simply using the simulator to have a look at the assembler code? This will also reflect optimisations applied by the linker, which you will not see in the assembler output of the compiler.

Regards

Frank

Powered by Ploneboard