Re: [C--] building on mac os x: a bit further

Zorg 421 <[email protected]> Wed, 25 Mar 2009 23:35:14 +0100
Newsgroups gmane.comp.lang.c--
Message-ID <[email protected]>
On Wed, Mar 25, 2009 at 4:32 AM, Norman Ramsey <[email protected]> wrote:
> =A0> It turned out that the ./configure was setting the platform to x86-u=
nknown...
> =A0> now I've added a x86-darwin section anywhere it was needed.
> =A0>
> =A0> but (:-)
> =A0>
> =A0> There is no need of those .section before .text and .data (reading t=
he
> =A0> apple doco), where may I tweak the templating system to not include
> =A0> them?
>
> The templates are in src/x86asm.nw.
> It looks like we'll need to parameterize all that stuff to support
> both linux and darwin. =A0Not fun.

I can see a "if (solaris)" in this file, is this a very special case
or do I get a boolean
"darwin" in the caml "context" too? (the if solaris is in a part
looking like C - I do not know noweb nor see a x86asm.c generated -
maybe it's just a doco part?)

> Also, runtime/gcc-linux.nw will need to be replaced with
> runtime/gcc-darwin.nw.

at least gcc-linux.c compile fine and end up in the libqc--.a
I don't know anything about stack layout on linux and darwin, though!

> We're hoping to set up a git repo soon (project is currently in CVS)
> but the next 5 weeks are hell...

no problems, will discover this beast on linux in the meantime
_______________________________________________
Cminusminus mailing list
[email protected]
https://www.eecs.harvard.edu/mailman/listinfo/cminusminus