Here's the ouptput on the Blade 2000 of the code Gonzalo posted.
drkir...@kestrel:[~] $ more u.s
.file "u.c"
.section".rodata"
.align 8
.LLC0:
.asciz "%d %d\n"
.section".text"
.align 4
.global main
.type main, #fun
On Mon, Jul 20, 2009 at 9:07 AM, David Kirkby wrote:
>
> How to I force gcc to output the assember like this?
$ gcc -S t2.c
will create t2.s. You can compile the asm (possibly modified) with
$ gcc t2.s -o t2
etc.
Gonzalo
--~--~-~--~~~---~--~~
To post to this g
2009/7/20 Gonzalo Tornaria
>
> Really funny... What would you expect the following program to output?
>
> #include
> #include
>
> int main (void)
> {
> int i = 1 , j = -1;
> char c = 1, d = 1;
>
> memset(&c, 2, i + j);
> memset(&d, 2, i + j);
>
> printf("%d %d\n", c, d);
>
> return 0;
> }
Really funny... What would you expect the following program to output?
#include
#include
int main (void)
{
int i = 1 , j = -1;
char c = 1, d = 1;
memset(&c, 2, i + j);
memset(&d, 2, i + j);
printf("%d %d\n", c, d);
return 0;
}
On the T2 with gcc (tried a few different versions)
On my laptop with
OS: Windows 2000
CPU: Intel Pentium M 1500MHz
Compiler: GCC 3.4.2 (from an old-ish MinGW)
it compiles fine and produces the same output as on your Blade 2000.
Sebastian
On Jul 18, 4:09 pm, "Dr. David Kirkby"
wrote:
> I'd be interested what you get if you build th
MaxTheMouse wrote:
>
>
> On Jul 18, 9:36 pm, "Dr. David Kirkby"
> wrote:
>> Dr. David Kirkby wrote:
>>
>>> Are you compiling this as 64-bit code? If so, then I would expect this.
>>> Can you try as 32-bit code.
>> try
>>
>> $ gcc -m32 that-code.c
>
> Okay, that did it. As 32-bit code I get no
On Jul 18, 9:36 pm, "Dr. David Kirkby"
wrote:
> Dr. David Kirkby wrote:
>
> > Are you compiling this as 64-bit code? If so, then I would expect this.
> > Can you try as 32-bit code.
>
> try
>
> $ gcc -m32 that-code.c
Okay, that did it. As 32-bit code I get no warning and the output is:
$ ./te
Dr. David Kirkby wrote:
>
> Are you compiling this as 64-bit code? If so, then I would expect this.
> Can you try as 32-bit code.
>
try
$ gcc -m32 that-code.c
--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubsc
MaxTheMouse wrote:
>
>
> On Jul 18, 5:09 pm, "Dr. David Kirkby"
> wrote:
>> I'd be interested what you get if you build this program, which was
>> written by one of the gcc guys to try to get to the bottom of this issue
>> with mpfr not building.
>>
>
> I get a warning. The program runs but
Jason Grout wrote:
> Dr. David Kirkby wrote:
>> I'd be interested what you get if you build this program, which was
>> written by one of the gcc guys to try to get to the bottom of this issue
>> with mpfr not building.
>>
>> On the Sun T5240 ('t2') donated by Sun to the Sage project, it dumps
On Jul 18, 5:09 pm, "Dr. David Kirkby"
wrote:
> I'd be interested what you get if you build this program, which was
> written by one of the gcc guys to try to get to the bottom of this issue
> with mpfr not building.
>
I get a warning. The program runs but not much output. This is on an
AMD-
Dr. David Kirkby wrote:
> I'd be interested what you get if you build this program, which was
> written by one of the gcc guys to try to get to the bottom of this issue
> with mpfr not building.
>
> On the Sun T5240 ('t2') donated by Sun to the Sage project, it dumps core:
>
> kir...@t2:[~]
12 matches
Mail list logo