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-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

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-19  6:48 compiler for ELKS programs 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
  -- strict thread matches above, loose matches on Subject: below --
2003-01-20 11:48 jerryc

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