🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.acorn.tech
Article #701

Re: ObjAsm: Conditional Includes

#701
From: Trygve R|ste
Date: Fri, 18 Dec 1992 21:25
17 lines
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
Technical Details
Message-ID: <1992Dec18.212509.7375@ugle.unit.no>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!ugle.unit.no!mari.unit.no!troeste

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.acorn.tech
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!ugle.unit.no!mari.unit.no!troeste
From: troeste@Mari.Unit.NO (Trygve R|ste)
Subject: Re: ObjAsm: Conditional Includes
Message-ID: <1992Dec18.212509.7375@ugle.unit.no>
Sender: news@ugle.unit.no (NetNews Administrator)
Reply-To: troeste@Mari.Unit.NO (Trygve R|ste)
Organization: University of Trondheim
Date: Fri, 18 Dec 92 21:25:09 GMT
Lines: 19