compiler for ELKS programs
Greetings,
Inspired by the feedback I have gotten from this list and my local LUG, I am learning to program C and use the curses / ncurses libraries. This seems like the best approach for putting Inner Peace on 8086's.
I read somewhere that ELKS itself does not have a compiler. If that's true, the code would have to be compiled on another computer, which should not be a problem. Some of what I'm reading refers to different coding styles for different compilers.
So, here are the relevant questions:
Does ELKS have a compiler?
If not, is there a compiler that will compile programs properly to run on ELKS? If so, what kind of coding styles are needed?
Any other help and suggestions would be appreciated.
Thanks again for all your support for an ELKS and C newbie.
Yours in peace,
Jerry
The compiler required for ELKS is documented on the ELKS web site. See the FAQ section at :-
Neil
-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of [email protected]
Sent: 19 January 2003 06:49
To: [email protected]
Subject: compiler for ELKS programs
Greetings,
Inspired by the feedback I have gotten from this list and my local LUG, I am learning to program C and use the curses / ncurses libraries. This seems like the best approach for putting Inner Peace on 8086's.
I read somewhere that ELKS itself does not have a compiler. If that's true, the code would have to be compiled on another computer, which should not be a problem. Some of what I'm reading refers to different coding styles for different compilers.
So, here are the relevant questions:
Does ELKS have a compiler?
If not, is there a compiler that will compile programs properly to run on ELKS?
If so, what kind of coding styles are needed?
Any other help and suggestions would be appreciated.
Thanks again for all your support for an ELKS and C newbie.
Yours in peace,
Jerry
-
To unsubscribe from this list: send the line "unsubscribe linux-8086" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Dear Neil,
I've read that page over several times, and there was some info about compiling ELKS itself. However, if it does say what to use to compile software to run on ELKS, I couldn't find it. Would you be so kind as to humor a newbie to C and ELKS and copy and paste in the paragraph or two that has it, and I'll forward it to my local LUG friends to explain it for me if I can't understand it?
Thanks for your help.
Yours in peace,
Jerry
Quoted 54 lines · Neil Holmes
The compiler required for ELKS is documented on the ELKS web site. See the FAQ section at :-
Neil
-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of [email protected]
Sent: 19 January 2003 06:49
To: [email protected]
Subject: compiler for ELKS programsGreetings,
Inspired by the feedback I have gotten from this list and my local LUG, I am learning to program C and use the curses / ncurses libraries. This seems like the best approach for putting Inner Peace on 8086's.
I read somewhere that ELKS itself does not have a compiler. If that's true, the code would have to be compiled on another computer, which should not be a problem. Some of what I'm reading refers to different coding styles for different compilers.
So, here are the relevant questions:
Does ELKS have a compiler?
If not, is there a compiler that will compile programs properly to run on ELKS?
If so, what kind of coding styles are needed?Any other help and suggestions would be appreciated.
Thanks again for all your support for an ELKS and C newbie.
Yours in peace,
Jerry
-
To unsubscribe from this list: send the line "unsubscribe linux-8086" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html-
To unsubscribe from this list: send the line "unsubscribe linux-8086" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi Jerry,
Here is a cut and paste from the FAQ section.
Q2.2. How do I make an ELKS kernel?
Recent releases contain a compiled binary kernel which most people would be able to use for initial testing. You should only need to compile your own if you wish to modify the kernel, or change the configuration options. The file boot in images.zip can be written to floppy with dd or RAWRITE.EXE to make a kernel boot disk.
If you want to compile your own kernel, download dev86/Dev86-0.0.13.4.tar.gz and kernel/elks-0.0.67/elks-0.0.67.tar.gz (or the latest versions) from linux.mit.edu, or one of the other sites. Unpack Dev86 them into /usr/src (or any other convenient directory), and elks into /usr/src/linux-86 then do...
tar -xvzf Dev86-0.0.13.tar.gz -C /usr/src tar -xvzf elks-0.0.67.tar.gz -C /usr/src
The development environment will be created in /usr/src/linux-86, and the kernel source in /usr/src/elks. Next you have to build the development tools, which include the bcc compiler:
cd /usr/src/linux-86 make install
Next, compile the kernel:
cd /usr/src/elks
# Build kernel
make config
make dep
make
And this cut and paste shows you where to get dev86 from. I checked the link. It works fine.
Q2.1. Where can I find the source?
The primary site http://elks.sf.net
The primary site for Dev86 is http://www.cix.co.uk/~mayday/ which is the best place to find the latest version.
Hope this helps. Please drop me a line if you need more.
Neil
-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of [email protected]
Sent: 20 January 2003 03:22
To: [email protected]
Subject: Re: compiler for ELKS programs
Dear Neil,
I've read that page over several times, and there was some info about compiling ELKS itself. However, if it does say what to use to compile software to run on ELKS, I couldn't find it. Would you be so kind as to humor a newbie to C and ELKS and copy and paste in the paragraph or two that has it, and I'll forward it to my local LUG friends to explain it for me if I can't understand it?
Thanks for your help.
Yours in peace,
Jerry
Quoted 49 lines · Neil Holmes
The compiler required for ELKS is documented on the ELKS web site. See the FAQ section at :-
Neil
-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of [email protected]
Sent: 19 January 2003 06:49
To: [email protected]
Subject: compiler for ELKS programsGreetings,
Inspired by the feedback I have gotten from this list and my local LUG, I am learning to program C and use the curses / ncurses libraries. This seems like the best approach for putting Inner Peace on 8086's.
I read somewhere that ELKS itself does not have a compiler. If that's true, the code would have to be compiled on another computer, which should not be a problem. Some of what I'm reading refers to different coding styles for different compilers.
So, here are the relevant questions:
Does ELKS have a compiler?
If not, is there a compiler that will compile programs properly to run on ELKS?
If so, what kind of coding styles are needed?Any other help and suggestions would be appreciated.
Thanks again for all your support for an ELKS and C newbie.
Yours in peace,
Jerry
-
To unsubscribe from this list: send the line "unsubscribe linux-8086" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 5 lines
-
To unsubscribe from this list: send the line "unsubscribe linux-8086" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
-
To unsubscribe from this list: send the line "unsubscribe linux-8086" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
On Sun, Jan 19, 2003 at 10:21:53PM -0500, [email protected] wrote:
Jerry
Quoted 3 lines
I've read that page over several times, and there was some info about compiling ELKS itself. However, if it does say what to use to compile
Dev86 (which may be installed on your linux box already rpm -q dev86 on a rpm derived distro, linux86 on a debian one) contains a compiler called bcc.
So if you have a simple c program like a Hello World. Named hello.c
#include <stdio.h>
main()
{
printf ("Hello, World!\n");
}Under linux run:
bcc -o hello hello.c
This will produce a file called hello which is
file hello
hello: Linux-8086 executable not stripped
You should then be able to run this in your elks environment of choice.
Hth
Paul
Quoted 9 lines · Paul Nasrat
On Sun, Jan 19, 2003 at 10:21:53PM -0500, [email protected] wrote:
JerryQuoted 3 lines
I've read that page over several times, and there was some info about compiling ELKS itself. However, if it does say what to use to compile
Dev86 (which may be installed on your linux box already rpm -q dev86 on a rpm derived distro, linux86 on a debian one) contains a compiler called bcc.
The Red Hat 7.0 Linux RPM installation of dev86-0.15.0-5 does *NOT* appear to be sufficient to make ELKS images.zip (at least). I found it necessary to download, untar, make and install Dev86src-0.16.0.tar.gz.