delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/11/03:02:51

Newsgroups: comp.os.msdos.djgpp
Subject: Re: Writing code for both DJGPP and Linux.
Distribution: world
From: vischne AT ibm DOT net-nospam (root)
Organization: The Light
References: <19971006120324 DOT 19697 DOT qmail AT hotmail DOT com>
MIME-Version: 1.0
NNTP-Posting-Host: 32.100.34.129
Message-ID: <3438fb9d.0@news3.ibm.net>
Date: 6 Oct 97 14:54:21 GMT
Lines: 24
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <19971006120324 DOT 19697 DOT qmail AT hotmail DOT com>, bigal2000 AT hotmail DOT com 
says...
>
>I am just starting a project in DJGPP (A PIC17C75XX programmer), which
>I want to be able to port to Linux at a later stage. It will use a 
>colour text interface, possibly the mouse, and will need to access the 
>serial port directly (to communicate with the device programmer).
>The problem is that I have no experience of Linux programming 
>whatsoever, and so I need some advice on exactly what I should do/avoid 
>doing, to make the job of porting the program to Linux as painless as 
>possible. I particularly would like to know how you set up/access the 
>serial port in Linux, and whether it's possible to do direct console io 
>(gotoxy(), intensevideo(), that type of thing).
>Does anyone know of any 'beginners guide to Linux programming' or 'DOS 
>programmers guide to Linux programming' type of document available 
>online?
>
You can go to sunsite.unc.edu, the home of Linux code, and download the
DosLinux package that lets you set up a small Linux partition inside your
Dos system (using the UMSDOS/W95 file system).  You can then download the
latest gcc compiler for Linux and use it to test your portability issues.
You have a leg up using DJGPP, since it's supposed to have the same interface
and share many of the include files that the Linux version has.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019