AnsweredAssumed Answered

Can I define a macro or pass a macro name to the bbl file?

Question asked by SimonZhu on Feb 18, 2009
Latest reply on Feb 18, 2009 by CompilerGuru

Hi,

 

I am using the comand line method not IDE to build my application. Then I have a question, can I define a macro or pass a macro name to the bbl file via command line. Now my bbl file is as below:

"
/* global s-record file */
OPENFILE "%ABS_FILE%.glo"
format = motorola
busWidth = 1
SRECORD=Sx

/* "EABI compliant encoded global" address to global */
len = 0x1800000
origin = 0x1000000
destination = 0
SENDBYTE 1 "%ABS_FILE%"
"

 

But the ABS_FILE is the environment variable thant CodeWarrio defines. I'd like to define my own macro in the bbl file or pass a macro to the bbl file such as:

burner.exe -D(MY_MACRO=%MY_MAOCR%) my.bbl

 

Is it possible?

 

Thanks,

Simon

Outcomes