ray@philmtl.philips.ca (Ray Dunn) (02/02/90)
In referenced article I asked: >Does anyone have, or know of the existance of a tool that would read a MASM >source file, apply the conditional preprocessing, and output the >"conditioned" source file without assembling. >..... >Thanks, if you reply by email I will summarize to the net. No specific program was identified, but several people suggested that the 'C' preprocessor could be used. This is of course not ideal for a number of reasons. Either you have to duplicate assembler conditionals and 'C' preprocessor conditionals, and stand the risk of differences between the two, or you must only use 'C' conditionals and carry the overhead of the preprocessor pass during assembly. If done from the start of a project, it's probably possible to organize all the conditionals such that they can be converted between assmbler and 'C' by the simple addition of a leading '#' only at the time the "conditioned source" is required. I'm still interested if anyone knows of a program that will do this on the assembler syntax directly. Thanks to: Jim Carter uunet!ucsd.edu!sdsu!csufres!ic2020!jim Rich Wilson uunet!hplsla.hp.com!richw Rick Wagner uunet!nrc.com!rick -- Ray Dunn. | UUCP: ray@philmtl.philips.ca Philips Electronics Ltd. | ..!{uunet|philapd|philabs}!philmtl!ray 600 Dr Frederik Philips Blvd | TEL : (514) 744-8200 Ext : 2347 (Phonemail) St Laurent. Quebec. H4M 2S9 | FAX : (514) 744-6455 TLX : 05-824090