From: Robert Hoehne Newsgroups: comp.os.msdos.djgpp Subject: Re: .S files, need more info on how they are processed Date: Thu, 06 Feb 1997 14:08:44 +0100 Organization: TU Chemnitz-Zwickau Lines: 24 Message-ID: <32F9D7DC.674F@Mathematik.tu-chemnitz.de> References: <01bc13d8$8c11ed20$6e29cfa9 AT p590> NNTP-Posting-Host: daemon.hrz.tu-chemnitz.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Paul Hooper wrote: > > cpp first, but would like to understand better what is allowed in .S file > (what sort of things can be preprocessed). You can use anything which cpp can resolve. That means (theoretical), you can define (but this will be a hard job) some (or better mamy) macros and then you can write the code which looks like normal C but is expanded to assembler. OK, at last: You can use any valid preprocesser directive, which also allowed for C (I hope I'm not wrong) with the limitation, that it should produce valid assembler syntax. An other method to use macros in assembler, is to use GASP. Please read the doc about it's usage. Robert -- ***************************************************************** * Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau * * Post: Am Berg 3, D-09573 Dittmannsdorf * * e-Mail: Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE * * WWW: http://www.tu-chemnitz.de/~rho * *****************************************************************