home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / acorn / tech / 1091 < prev    next >
Encoding:
Text File  |  1992-12-21  |  922 b   |  31 lines

  1. Newsgroups: comp.sys.acorn.tech
  2. Path: sparky!uunet!mcsun!sunic!ugle.unit.no!mari.unit.no!troeste
  3. From: troeste@Mari.Unit.NO (Trygve R|ste)
  4. Subject: Re: ObjAsm: Conditional Includes
  5. Message-ID: <1992Dec18.212509.7375@ugle.unit.no>
  6. Sender: news@ugle.unit.no (NetNews Administrator)
  7. Reply-To: troeste@Mari.Unit.NO (Trygve R|ste)
  8. Organization: University of Trondheim
  9. Date: Fri, 18 Dec 92 21:25:09 GMT
  10. Lines: 19
  11.  
  12.  
  13. There is a switch on cc (Acorn/Norcroft C) which turns off compilation
  14. and linking, i.e. the preprocessor is the only part involved. Then cc can be used as a preprocessor for ObjAsm files:
  15.  
  16.   cc -E -o tmp.asmfile s.asmfil
  17.   objasm -o o.asmfile tmp.asmfile
  18.   erase tmp.asmfile 
  19.  
  20. where spp.asmfile is an objasm file containing #define, #ifndef,
  21. #include etc...
  22.  
  23. I have not tried it yet, but I think it should work. 
  24.  
  25. Anyway, it would have been better if it where possible only with ObjAsm directives. 
  26.  
  27.  
  28. -Trygve
  29.  
  30.  
  31.