http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

Wise2Food



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cross-compiling



Thanks a lot to both of you, this code might come in handy. But what I
would like to do is compile code on a Unix machine and be able to run it
on a Windows machine, i.e. cross-compile it to the Windows platform. I
would like to use both C and Asm, if possible. Any further ideas?

Ciao,

Lionel

P.s. Is there any use these days for COBOL, I just found my old COBOL
compiler?

On Mon, 19 Jun 2000, Josiah Avery wrote:

> 
> >To use assembly in windows, or with C just type this:
> >
> >_asm {
> >
> >
> >}
> >
> >here is an
> >
> >Example
> >
> >// Example of the __asm keyword
> >__asm                  // __asm block
> >{
> >    mov eax, 01h
> >    int 10h
> >}
> >
> >__asm mov eax, 01h      // Separate __asm lines
> >__asm int 10h
> >
> >// Multiple __asm statements on a line
> >__asm mov eax, 01h   __asm int 10h
> >
> >There is some things you can't do though.  You need something like masm
> 
> 
> *** I am not sure if you are aware of this, but gnus compilers use a 
> somewhat "weird" convention for inline assembly instructions. I dont exactly 
> remember, but this:
> 
> _asm mov ax,cs:data;
> 
> might become
> 
> _asm mov %%ax,%%cs:cs;
> 
> or somethings like that.....
> 
> Josiah
> 
> 
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
> 
> =================================================================
> The GameProgrammer.Com mailing list is for the open discussion
> of any topic related to the art, science, and business of
> programming games. This list is especially tolerant of beginners.
> We were all beginners once
> 
> To SUBSCRIBE or UNSUBSCRIBE please visit:
> http://gameprogrammer.com/mailinglist.html
> 

=================================================================
The GameProgrammer.Com mailing list is for the open discussion
of any topic related to the art, science, and business of
programming games. This list is especially tolerant of beginners.
We were all beginners once

To SUBSCRIBE or UNSUBSCRIBE please visit:
http://gameprogrammer.com/mailinglist.html