Click to See Complete Forum and Search --> : Compiling for a 386


Zappo
06-24-2001, 08:52 AM
I've managed to install Linux on an old 386 laptop. Now I need to put it to work - but the compiler and libraries won't fit there. So, I thought I can develop the stuff on a big machine and then copy it to the laptop. But, in order to do this, I must tell the compiler (which runs on a Pentium something) that it has to create code for a 386. How can I do this? If it helps, I am not going to use complex or odd libraries - just the standard, plus ncurses.

bdg1983
06-24-2001, 02:16 PM
I'm certainly not an expert on gcc although I would think you could specify a parameter on the compile line to say what processor you are compiling for. i.e. gcc xxxx -386

I would suggest you read whatever documentation is available both installed on your pentium or from the web.