Re: Request for an example x68 assembler portable Hello World script

2019-04-29 Thread Sam Habiel
I frequently cannot contribute discussion to Cygwin topics, but due to my work porting a database (fis-gtm) to Cygwin, I can chime in here. This is a good article to give you an overview of the different calling conventions out there: https://eli.thegreenplace.net/2011/09/06/stack-frame-layout-on-

Re: Request for an example x68 assembler portable Hello World script

2019-04-28 Thread Eliot Moss
On 4/26/2019 5:04 PM, Jesse Thompson wrote: Ultimately what I am trying to research is how to begin building a simple compilation system of my own, so how do the *makers* of compilers deal with these differences in calling convention? They make parts of the compilers conditional on the overall

Re: Request for an example x68 assembler portable Hello World script

2019-04-27 Thread bzs
Just two thoughts: 1. You probably know that 'cc -S foo.c' produces foo.s which is the assembler output. Might be worthwhile examining how the experts who wrote the C compiler handle all this. The output is usually quite readable for someone prone to reading such things. 2. Rather than generati

Re: Request for an example x68 assembler portable Hello World script

2019-04-26 Thread Doug Henderson
On Fri, 26 Apr 2019 at 15:04, Jesse Thompson <> wrote: > > > From: Eliot Moss <> > > To: cygwin@cygwin.com > > Date: Fri, 26 Apr 2019 07:16:38 -0400 > > Subject: Re: Request for an example x68 assembler portable Hello World > Ultimately what I am trying to research is how to begin building a simp

Re: Request for an example x68 assembler portable Hello World script

2019-04-26 Thread Jesse Thompson
> From: Eliot Moss > To: cygwin@cygwin.com > Date: Fri, 26 Apr 2019 07:16:38 -0400 > Subject: Re: Request for an example x68 assembler portable Hello World script > > Der Jesse -- Someone else may be able to speak to the specifics, but > register use and calling convention

Re: Request for an example x68 assembler portable Hello World script

2019-04-26 Thread Eliot Moss
On 4/26/2019 3:25 AM, Jesse Thompson wrote: I would like to learn how to write assembly programs for the command line that with as little alteration as is feasable will compile both in Cygwin and in other flavors of Unix like Linux and/or FreeBSD. I am targeting only x64 CPUs and I'm perfectly h

Request for an example x68 assembler portable Hello World script

2019-04-26 Thread Jesse Thompson
I would like to learn how to write assembly programs for the command line that with as little alteration as is feasable will compile both in Cygwin and in other flavors of Unix like Linux and/or FreeBSD. I am targeting only x64 CPUs and I'm perfectly happy to use libc calls instead of direct sysca