Skip to main content
Renesas Electronics Europe - Knowledgebase

Why code=asmcode and code=machinecode compiler options different?

Latest Updated:09/10/2007


When I select "code=asmcode" and "code=machinecode" compiler options and generate two load modules, these two load modules are not same. Why?


Differences in the generated code may occur in the following cases:

  1. When using the inter-module optimization (Linker Optimization)
    If you specify "code=asmcode" option, inter-module optimization is not available.

  2. When using "#pragma asm" for assembly code in the source file (H8C/C++ Compiler Package), the declaration within the #pragma asm/endasm directives is ignored when "code=machinecode" option is selected.

  3. When using the assembler optimization (H8C/C++ Compiler Package)
Suitable Products
C/C++ Compiler Package for SuperH Family
C/C++ Compiler Package for H8SX, H8S, H8 Family