Re: [osol-discuss] Assembler Output

2007-01-23 Thread Eric Enright
On 1/23/07, DEEPAK BHATIA [EMAIL PROTECTED] wrote: Hi, I am not sure if this the right place to ask this question. How can we use cc to product assembler output file ? cc -S -- Eric Enright ___ opensolaris-discuss mailing list

RE: [osol-discuss] Assembler Output

2007-01-23 Thread Deepak Bhatia
: opensolaris-discuss@opensolaris.org Subject: Re: [osol-discuss] Assembler Output On 1/23/07, DEEPAK BHATIA [EMAIL PROTECTED] wrote: Hi, I am not sure if this the right place to ask this question. How can we use cc to product assembler output file ? cc -S -- Eric Enright

RE: [osol-discuss] Assembler Output

2007-01-23 Thread Deepak Bhatia
To: Eric Enright Cc: opensolaris-discuss@opensolaris.org Subject: RE: [osol-discuss] Assembler Output Thanks for your reply. I am talking about a.out given in the format below. http://fuse4bsd.creo.hu/localcgi/man-cgi.cgi?a.out+5 Regards Deepak Bhatia -Original Message- From: Eric Enright

Re: [osol-discuss] Assembler Output

2007-01-23 Thread Dennis Clarke
Hi, I am not sure if this the right place to ask this question. How can we use cc to product assembler output file ? Regards bash-3.2$ cat hello.c #include stdio.h int main(int argc, char *argv[]) { printf ( Hello World!\n ); return (0); } bash-3.2$ CC=cc;export CC bash-3.2$

Re: [osol-discuss] Assembler Output

2007-01-23 Thread Dennis Clarke
forgot to add this : bash-3.2$ cc -xstrconst -xildoff -xarch=v9a -xlibmil -Xc -o hello hello.s bash-3.2$ ls -lap hello -rwxr-xr-x 1 dclarke csw 7560 Jan 23 10:04 hello bash-3.2$ date Tue Jan 23 10:04:32 EST 2007 bash-3.2$ ./hello Hello World!

RE: [osol-discuss] Assembler Output

2007-01-23 Thread Deepak Bhatia
-discuss] Assembler Output Hi, I am not sure if this the right place to ask this question. How can we use cc to product assembler output file ? Regards bash-3.2$ cat hello.c #include stdio.h int main(int argc, char *argv[]) { printf ( Hello World!\n ); return (0); } bash-3.2$ CC=cc

RE: [osol-discuss] Assembler Output

2007-01-23 Thread James Carlson
Deepak Bhatia writes: Thanks for your reply. I am talking about a.out given in the format below. http://fuse4bsd.creo.hu/localcgi/man-cgi.cgi?a.out+5 Why would you want to do this? What problem are you trying to solve? -- James Carlson, Solaris Networking [EMAIL PROTECTED]

RE: [osol-discuss] Assembler Output

2007-01-23 Thread Deepak Bhatia
-discuss@opensolaris.org Subject: RE: [osol-discuss] Assembler Output Deepak Bhatia writes: Thanks for your reply. I am talking about a.out given in the format below. http://fuse4bsd.creo.hu/localcgi/man-cgi.cgi?a.out+5 Why would you want to do this? What problem are you trying to solve

Re: [osol-discuss] Assembler Output

2007-01-23 Thread Darren J Moffat
Deepak Bhatia wrote: Thanks for your reply. Will the hello executable execute the code of dynamic linker from the file a.out.c in the following directory /usr/src/cmd/sgs/rtld/common But I have a i386 machine and I don't know why cc is not taking -xarch=v8. So you have an i386 machine and

RE: [osol-discuss] Assembler Output

2007-01-23 Thread James Carlson
Deepak Bhatia writes: But I have a i386 machine and I don't know why cc is not taking -xarch=v8. Though -xarch=generic or -xarch=386 are working. v8 means SPARC architecture version 8 -- that is, 32-bit SPARC. There's no such thing as an i386 v8 architecture, nor do the tools support

Re: [osol-discuss] Assembler Output

2007-01-23 Thread Rod Evans
Deepak Bhatia wrote: I am working on a project related to the dynamic linker on Solaris. You have asked a number of rudimentary questions in regards this area of Solaris on this alias, and I have suggested that you target your questions to [EMAIL PROTECTED], which is a more appropriate alias

RE: [osol-discuss] Assembler Output

2007-01-23 Thread James Carlson
Deepak Bhatia writes: When I create an ELF File on my i386 machine with Solaris Nevada and execute the code ./ld.so.1 a.out I am not able to reach the file a.out.c which it looks like is used to handle old a.out (Assembler OUTput) file. Please confirm if this is true or not. It's

Re: [osol-discuss] Assembler Output

2007-01-23 Thread Rob McMahon
Rod Evans wrote: Given that we're now several years into the *new* Solars :-), I have on my list of things to do, the EOL of all this AOUT technology. I find it hard to believe that anyone still expects a 4.x binary to run on Solaris (although Sun had a few squirreled away up until a couple of

Re: [osol-discuss] Assembler Output

2007-01-23 Thread Scott Rotondo
Deepak Bhatia wrote: When we do #cc test.c We get a.out file but it is again ELF File format file. A.out is the name of a binary format that predates ELF. This compiler always produces ELF output files, even if the file name happens to be a.out. Hi, I am working on a project related

Re: [osol-discuss] Assembler Output

2007-01-23 Thread Casper . Dik
Rod Evans wrote: Given that we're now several years into the *new* Solars :-), I have on my list of things to do, the EOL of all this AOUT technology. I find it hard to believe that anyone still expects a 4.x binary to run on Solaris (although Sun had a few squirreled away up until a couple

Re: [osol-discuss] Assembler Output

2007-01-23 Thread Rod Evans
[EMAIL PROTECTED] wrote: Rod Evans wrote: Given that we're now several years into the *new* Solars :-), I have on my list of things to do, the EOL of all this AOUT technology. I find it hard to believe that anyone still expects a 4.x binary to run on Solaris (although Sun had a few squirreled

Re: [osol-discuss] Assembler Output

2007-01-23 Thread Casper . Dik
[EMAIL PROTECTED] wrote: Rod Evans wrote: Given that we're now several years into the *new* Solars :-), I have on my list of things to do, the EOL of all this AOUT technology. I find it hard to believe that anyone still expects a 4.x binary to run on Solaris (although Sun had a few