|
Thanks Cpt for the Titanic dose of reality. I completely forgot that the CPP just did text substitutions, ad nauseum, until it was just a large string of text at the end going into the compiler.
So, with your suggestion, I added assignment statements, grep'ed the assembly listing for the assembly code and awk'ed my way to get the actual final compiled values to compare with the expected values.
That was better than comparing hundreds of blindingly similar values by hand.
thanks, again, Cpt, Dan
btw, with the -E option, I confirmed the final expansion for one of the values is over 10130 characters long of all math, parens, and numbers. Lots of fun.
|