Thread View: comp.sys.acorn.tech
3 messages
3 total messages
Started by Trygve R|ste
Fri, 18 Dec 1992 21:25
Re: ObjAsm: Conditional Includes
Author: Trygve R|ste
Date: Fri, 18 Dec 1992 21:25
Date: Fri, 18 Dec 1992 21:25
17 lines
948 bytes
948 bytes
There is a switch on cc (Acorn/Norcroft C) which turns off compilation and linking, i.e. the preprocessor is the only part involved. Then cc can be used as a preprocessor for ObjAsm files: cc -E -o tmp.asmfile s.asmfil objasm -o o.asmfile tmp.asmfile erase tmp.asmfile where spp.asmfile is an objasm file containing #define, #ifndef, #include etc... I have not tried it yet, but I think it should work. Anyway, it would have been better if it where possible only with ObjAsm directives. -Trygve
Re: ObjAsm: Conditional Includes
Author: Frank Lancaster
Date: Mon, 21 Dec 1992 13:45
Date: Mon, 21 Dec 1992 13:45
15 lines
1095 bytes
1095 bytes
In article <1992Dec18.212509.7375@ugle.unit.no> troeste@Mari.Unit.NO (Trygve R|ste) writes: > There is a switch on cc (Acorn/Norcroft C) which turns off compilation > and linking, i.e. the preprocessor is the only part involved. > Then cc can be used as a preprocessor for ObjAsm files: > > cc -E -o tmp.asmfile s.asmfil I think Acorn's cc always inserts #line statements into the preprocessed code. I wanted to use the preprocessor only mode for something different than c but had to use a cpp on unix instead because I couldn't use the #line statements. -- Frank Lancaster, fl@tools.de
Re: ObjAsm: Conditional Includes
Author: Geoff Riley
Date: Thu, 24 Dec 1992 20:35
Date: Thu, 24 Dec 1992 20:35
14 lines
1088 bytes
1088 bytes
In article <FL.92Dec21124557@pierre.tools.de> fl@tools.de (Frank Lancaster) writes:
>I think Acorn's cc always inserts #line statements into the
>preprocessed code. I wanted to use the preprocessor only mode
>for something different than c but had to use a cpp on unix
>instead because I couldn't use the #line statements.
You could always put the preprosessor output through
awk/sed/perl/whatever to strip out the #line's.... ;-)
--
Cheerio,
|~~~
|__|eoff (Fidonet address: 2:250/208)
(uucp address: arcturus@spuddy.uucp or ...!uknet!axion!spuddy!arcturus)
* Meeeow ! Call Spuddy on (0203) 638780/638693 for FREE mail & Usenet access *
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads