This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Read *.h files from STARTUP.A66

Hi there,

is it possible to read some variable (e.g. x=0 or x=1) from a *.h file and make a corresponding choice (if...else...) in the STARTUP.A66?

thanks
Cheng

Parents
  • Runtime or compile time?

    Runtime: call a C fuction (or simply read the variable) from the STARTUP.A66 file and decide based on the result.

    Compile time: the includes and defines are different between asm and C but what you could do is have the build environment parse a C header file, before assembling/compiling, and generate an .inc file, that uses the assembly format, and include the generated file in STARTUP.A66.

    --
    Joost

Reply
  • Runtime or compile time?

    Runtime: call a C fuction (or simply read the variable) from the STARTUP.A66 file and decide based on the result.

    Compile time: the includes and defines are different between asm and C but what you could do is have the build environment parse a C header file, before assembling/compiling, and generate an .inc file, that uses the assembly format, and include the generated file in STARTUP.A66.

    --
    Joost

Children