Page 1 of 1
preprocessor output
Posted: 15 Mar 2012, 22:26
by mcsummation
Is it possible to get the preprocessor's output dumped to a file? (Especially when it gets an error.) I'm having troubles getting a macro to compile properly and I can't determine what the problem is. I know it's probably something simple, but with the stuff going on with token substitution, etc., it's hard to tell what the preprocessor is spitting out.
Re: preprocessor output
Posted: 15 Mar 2012, 22:49
by afanofosc
Sometimes it is faster to just post your code. If you get a preprocessor error I don't you can get any kind of intermediate output. You can try -nbc=<filename> in the switches to see what it outputs.
John Hansen
Re: preprocessor output
Posted: 15 Mar 2012, 23:06
by mattallen37
If you are using BCC, try pressing F12 after compiling the program.
Re: preprocessor output
Posted: 15 Mar 2012, 23:36
by mcsummation
F12 gives the output of the NXC compiler that is the input to the NBC assembler.
John, I was trying to KISS, that's what led me off into the weeds.