Installing LCC on an Intel Apple Macintosh; OS X Leopard

Installing LCC on an Intel Apple Macintosh; OS X Leopard

Post by Alex Elde » Fri, 26 Sep 2008 23:47:19


Hello comp.compilers.lcc,

I've been trying to build LCC on my Macintosh and I'm having a few
problems compiling the compiler correctly. I've not made any
significant changes to the source files beyond updating the LCCDIR
file locations and manually copying select pieces from the ``src/
*.md'' files. I can successfully run ``lcc'', and I do see compiler
output. Attempting to compile a simple Hello World! application fails.
I'm hoping my persistence will pay off, however, if anyone has any
advice or information I would really appreciate some extra knowledge.
I'm compiling the Linux target, rather than the generic LCC code.

Any advice would be really appreciated. If I do get it working, I'll
try and put a guide together explaining how it was done as I can't
seem to find anything online anywhere RE: installing on OS X.

Alex
 
 
 

Installing LCC on an Intel Apple Macintosh; OS X Leopard

Post by Dave Hanso » Sat, 27 Sep 2008 03:33:39


How, exactly, does compiling Hello World! fail?

Also, are you having trouble with lcc, the driver, or rcc, the
compiler proper?

Make sure you can build rcc. Here's what I just did on OS-X 10.5.5 to
build rcc and test it by compiling tst/8q.c:

$ svn co http://www.yqcomputer.com/
$ cd lcc
$ mkdir build
$ export BUILDDIR=./build
$ make ./build/rcc
$ build/rcc -target=x86/linux tst/8q.c

dave h