Article View: comp.sys.atari.st
Article #3284Sozobon compiler
From: Kevin "tkld" Davidson
Date: Mon, 21 Aug 1989 14:41
Date: Mon, 21 Aug 1989 14:41
36 lines
1759 bytes
1759 bytes
Can anyone tell me what the latest version of Sozobon CC is ?
Has hcc been upgraded to accept this sort of construct:
#if defined(MSDROSS) || defined(TOS)
int foo, bar, fred;
#endif
If not I'll have a go at putting it in myself - I'd guess it would have to
work like sizeof(...), and expr.c would replace it with a constant expression
for p_if().
I found stuff like this trying to compile the recently posted nethack 3.0f
on a sun. I have sozobon set up as a cross compiler, but it took me a couple
of days to get rid of most of the assumptions that sizeof(int) == sizeof(short)
(I even managed to find a line `#define short int' in one .h file !)
This *had* to be a deliberate attempt to get back at mainframe programmers
who *always* assume sizeof(int)==sizeof(long) :-)
Howzabout a complete ban of int fields in structures ? :-) :-)
Or get rid of int :-) :-) :-)
Has anyone thought about adding the const and inline storage classes ?
I haven't looked to see how much work this would be (#define inline void
just doesn't satisfy me :-)
I'll do the work if nobody else is interested - looks like fun, but I *hate*
reinventing the wheel (except when the supplied wheel is reeeaaally ugly)
--
.Kevin. <erck15@castle.ed.ac.uk>
<tkld@tardis.cs.ed.ac.uk>
Technical Details
Message-ID:
<204@castle.ed.ac.uk>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!mcvax!ukc!edcastle!erck15Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!mcvax!ukc!edcastle!erck15 From: erck15@castle.ed.ac.uk (Kevin "tkld" Davidson) Newsgroups: comp.sys.atari.st Subject: Sozobon compiler Keywords: ansi, sozobon Message-ID: <204@castle.ed.ac.uk> Date: 21 Aug 89 14:41:19 GMT Reply-To: erck15@castle.ed.ac.uk (Kevin Davidson) Organization: Edinburgh Concurrent Supercomputer Project Lines: 36