Article View: alt.msdos.programmer
Article #1266Re: Source without conditionals
From: Ray Dunn
Date: Fri, 02 Feb 1990 15:28
Date: Fri, 02 Feb 1990 15:28
34 lines
1925 bytes
1925 bytes
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
Technical Details
Message-ID:
<985@philmtl.philips.ca>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!philmtl!rayReferences:
<967@philmtl.philips.ca>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!philmtl!ray From: ray@philmtl.philips.ca (Ray Dunn) Newsgroups: alt.msdos.programmer,comp.sys.ibm.pc Subject: Re: Source without conditionals Message-ID: <985@philmtl.philips.ca> Date: 2 Feb 90 15:28:39 GMT References: <967@philmtl.philips.ca> Followup-To: alt.msdos.programmer Organization: Philips Electronics Ltd. Product Group PC. Montreal. Lines: 34