On Tuesday 20 March 2007 01:32, me wrote:
> Could you give me a little more detail please.
> I want to cross compile a program in linux to run on freedos.
> I  have slackwareware 11 installed dual boot with freedos.
> Can I get gcc 3.4.6 to compile a binary to run on freedos?
> If so could you you tell me how?

The thing that came up in my mind was, how does djgpp turn a Un*x binary into 
a DOS executable?  There's a 32-bit DOS stub that gets attached during the 
later compile process, after compiling and assembling.  The only thing is, I 
don't know if it would be possible to compile something in Linux, copy the 
compiled file over to the DOS partition, then finish the compile process by 
attaching the 32-bit DOS stub.

Has anyone ever tried that?  I haven't, and so can't say whether it will work 
or not - but that's how djgpp works, and so it should work with an x86 Linux 
and FreeDOS.

Wesley Parish
>
> thanks
> ----- Original Message -----
> From: "Florian Xaver" <[EMAIL PROTECTED]>
> To: <freedos-user@lists.sourceforge.net>
> Sent: Monday, March 19, 2007 8:10 AM
> Subject: Re: [Freedos-user] Linux freedos cross compiler
>
> > Yes, DJGPP is a good idea. But you should use 2.04pre and shouldn't
> > try 2.02. You can use the same GCC compiler as in Linux. Last one is
> > 4.1.x which is ported to DOS. You should ask in the DJGPP
> > newsgroup/mailing list.
> >
> > There are also some libraries for DJGPP which are useable in DOS and
> > Linux (f.e. Allegro game library).
> >
> > Cygwin cannot be used in FreeDOS
> >
> > Bye
> > Flo
> >
> > On 3/19/07, me <[EMAIL PROTECTED]> wrote:
> >> I want to develop freedos programs in linux ,since I already have all my
> >> development stuff there.I don't know whether to ask in a linux forum of
> >> freedos.I found instructions for building a cross compiler here.
> >>
> >> http://www.delorie.com/howto/djgpp/linux-x-djgpp.html
> >>
> >> But the instructions are pretty old and I can't find djcrx202.zip from a
> >> reliable source. If I can't cross compile ,will cygwin work on
> >> freedos?Freedos only has a few Mb left on the partition so I don't want
> >> to
> >> install another compiler.Does anyone have other options?
> >> ------------------------------------------------------------------------
> >>- Take Surveys. Earn Cash. Influence the Future of IT
> >> Join SourceForge.net's Techsay panel and you'll get the chance to share
> >> your
> >> opinions on IT & business topics through brief surveys-and earn cash
> >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
> >>V _______________________________________________
> >> Freedos-user mailing list
> >> Freedos-user@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/freedos-user
> >
> > --
> > Private Page, oZone GUI <http://www.flox.at.tf>
> > Club Dr-DOS Wiki <http://www.drdos.org>
> > Using Arachne, the GPL Web Browser/Suite
> >
> > -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> > your
> > opinions on IT & business topics through brief surveys-and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > Freedos-user mailing list
> > Freedos-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/freedos-user
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Freedos-user mailing list
> Freedos-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freedos-user

-- 
Clinersterton beademung, with all of love - RIP James Blish
-----
Mau e ki, he aha te mea nui?
You ask, what is the most important thing?
Maku e ki, he tangata, he tangata, he tangata.
I reply, it is people, it is people, it is people.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to