public inbox for linux-8086@vger.kernel.org
 help / color / mirror / Atom feed
* compiler for ELKS programs
@ 2003-01-19  6:48 jerryc
  2003-01-19  8:20 ` Neil Holmes
  0 siblings, 1 reply; 7+ messages in thread
From: jerryc @ 2003-01-19  6:48 UTC (permalink / raw)
  To: linux-8086

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: compiler for ELKS programs
  2003-01-19  6:48 jerryc
@ 2003-01-19  8:20 ` Neil Holmes
  2003-01-20  3:21   ` jerryc
  0 siblings, 1 reply; 7+ messages in thread
From: Neil Holmes @ 2003-01-19  8:20 UTC (permalink / raw)
  To: jerryc, linux-8086

The compiler required for ELKS is documented on the ELKS web site. See the
FAQ section at :-

http://elks.sourceforge.net

Neil

-----Original Message-----
From: linux-8086-owner@vger.kernel.org
[mailto:linux-8086-owner@vger.kernel.org]On Behalf Of
jerryc@innerpeace.org
Sent: 19 January 2003 06:49
To: linux-8086@vger.kernel.org
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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: compiler for ELKS programs
  2003-01-19  8:20 ` Neil Holmes
@ 2003-01-20  3:21   ` jerryc
  2003-01-20  6:43     ` Neil Holmes
  2003-01-20  8:51     ` Paul Nasrat
  0 siblings, 2 replies; 7+ messages in thread
From: jerryc @ 2003-01-20  3:21 UTC (permalink / raw)
  To: linux-8086

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

Neil Holmes wrote:
> The compiler required for ELKS is documented on the ELKS web site. See the
> FAQ section at :-
> 
> http://elks.sourceforge.net
> 
> Neil
> 
> -----Original Message-----
> From: linux-8086-owner@vger.kernel.org
> [mailto:linux-8086-owner@vger.kernel.org]On Behalf Of
> jerryc@innerpeace.org
> Sent: 19 January 2003 06:49
> To: linux-8086@vger.kernel.org
> 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 majordomo@vger.kernel.org
> 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 majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 



^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: compiler for ELKS programs
  2003-01-20  3:21   ` jerryc
@ 2003-01-20  6:43     ` Neil Holmes
  2003-01-20  8:51     ` Paul Nasrat
  1 sibling, 0 replies; 7+ messages in thread
From: Neil Holmes @ 2003-01-20  6:43 UTC (permalink / raw)
  To: jerryc, linux-8086

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: linux-8086-owner@vger.kernel.org
[mailto:linux-8086-owner@vger.kernel.org]On Behalf Of
jerryc@innerpeace.org
Sent: 20 January 2003 03:22
To: linux-8086@vger.kernel.org
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

Neil Holmes wrote:
> The compiler required for ELKS is documented on the ELKS web site. See the
> FAQ section at :-
>
> http://elks.sourceforge.net
>
> Neil
>
> -----Original Message-----
> From: linux-8086-owner@vger.kernel.org
> [mailto:linux-8086-owner@vger.kernel.org]On Behalf Of
> jerryc@innerpeace.org
> Sent: 19 January 2003 06:49
> To: linux-8086@vger.kernel.org
> 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 majordomo@vger.kernel.org
> 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 majordomo@vger.kernel.org
> 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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: compiler for ELKS programs
  2003-01-20  3:21   ` jerryc
  2003-01-20  6:43     ` Neil Holmes
@ 2003-01-20  8:51     ` Paul Nasrat
  2003-01-20 12:41       ` jb1
  1 sibling, 1 reply; 7+ messages in thread
From: Paul Nasrat @ 2003-01-20  8:51 UTC (permalink / raw)
  To: linux-8086

On Sun, Jan 19, 2003 at 10:21:53PM -0500, jerryc@innerpeace.org wrote:
Jerry
> 
> 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: compiler for ELKS programs
@ 2003-01-20 11:48 jerryc
  0 siblings, 0 replies; 7+ messages in thread
From: jerryc @ 2003-01-20 11:48 UTC (permalink / raw)
  To: linux-8086

Thank you Paul and Neil,

Based upon that, I should be able to find the coding style requirements
(old style, ANSI, etc) for bcc in the documentation. Any other
suggestions as we progress on this project would be appreciated.

Probably the thing that would be most helpful soon would be some links
or names of good sample code of programs that already use curses or
ncurses for 80 x 25 text screens, particularly ones that scroll both up
and down. If anybody has ideas for anything other than C using
curses/ncurses, now would be a good time to hear them, too, before we
get too commited to that solution.

Yours in peace,

Jerry


Paul Nasrat wrote:
 > On Sun, Jan 19, 2003 at 10:21:53PM -0500, jerryc@innerpeace.org wrote:
 > Jerry
 >
 >>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
 > -
 > To unsubscribe from this list: send the line "unsubscribe linux-8086" in
 > the body of a message to majordomo@vger.kernel.org
 > More majordomo info at  http://vger.kernel.org/majordomo-info.html
 >




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: compiler for ELKS programs
  2003-01-20  8:51     ` Paul Nasrat
@ 2003-01-20 12:41       ` jb1
  0 siblings, 0 replies; 7+ messages in thread
From: jb1 @ 2003-01-20 12:41 UTC (permalink / raw)
  To: Paul Nasrat; +Cc: linux-8086

On Mon, 20 Jan 2003, Paul Nasrat wrote:

> On Sun, Jan 19, 2003 at 10:21:53PM -0500, jerryc@innerpeace.org wrote:
> Jerry
> > 
> > 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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-01-20 12:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-20 11:48 compiler for ELKS programs jerryc
  -- strict thread matches above, loose matches on Subject: below --
2003-01-19  6:48 jerryc
2003-01-19  8:20 ` Neil Holmes
2003-01-20  3:21   ` jerryc
2003-01-20  6:43     ` Neil Holmes
2003-01-20  8:51     ` Paul Nasrat
2003-01-20 12:41       ` jb1

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox