Mail Archives: djgpp/1995/12/20/19:38:59
Err, the example you give doesn't have much to do with the assembler.
The only way I know of to do this is to split up the source which IMHO
is the right way. Another way is to use #ifdef and produce a pair of
objects which you compile from the same source but with different flags.
You then link 'em up.
These tools were developed under UNIX where the theory is that if there
exist two tools which can do the job of a third then the third is
superfluous and you are better off learning to use the other two
correctly. I agree with this as it keep the number of tools small,
correct and powerful.
-Jim.
Xref: news-dnh.mv.net comp.os.msdos.djgpp:3961
Path: news-dnh.mv.net!mv!news.sprintlink.net!europa.chnt.gtegsc.com!news.kreonet.re.kr!overload.lbl.gov!lll-winken.llnl.gov!uwm.edu!chi-news.cic.net!newsfeed.internetmci.com!howland.reston.ans.net!news.nic.surfnet.nl!tuegate.tue.nl!snail.stack.urc.tue.nl!jan
From: jan AT stack DOT urc DOT tue DOT nl (Jan Oonk)
Newsgroups: comp.os.msdos.djgpp
Date: 19 Dec 1995 14:18:01 GMT
Organization: MCGV Stack, Eindhoven University of Technology, the Netherlands.
Lines: 20
NNTP-Posting-Host: snail.stack.urc.tue.nl
X-Newsreader: TIN [version 1.2 PL2]
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
How can I pass options for the assembler from within my source code?
For example:
source:
<tell the compiler to do for example -O2 for the following lines>
code
<tell the compiler to do for example -O1 or any other option>
code
end of code
Is this possible? I think it ought to be! If you can give command line
options to the assembler (nothing more than options for the whole source
file) than it must be possible to give options to parts of code instead of
the whole source=commandline option !?!?!?
CU! Thanks in advance...
Please (also) email your replys!
- Raw text -