[sage-devel] Re: Can a few of you compile this 23 line program.

2009-07-20 Thread David Kirkby
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

[sage-devel] Re: Can a few of you compile this 23 line program.

2009-07-20 Thread Gonzalo Tornaria
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

[sage-devel] Re: Can a few of you compile this 23 line program.

2009-07-20 Thread David Kirkby
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; > }

[sage-devel] Re: Can a few of you compile this 23 line program.

2009-07-19 Thread 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; } On the T2 with gcc (tried a few different versions)

[sage-devel] Re: Can a few of you compile this 23 line program.

2009-07-18 Thread Sebastian Pancratz
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

[sage-devel] Re: Can a few of you compile this 23 line program.

2009-07-18 Thread Dr. David Kirkby
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

[sage-devel] Re: Can a few of you compile this 23 line program.

2009-07-18 Thread MaxTheMouse
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

[sage-devel] Re: Can a few of you compile this 23 line program.

2009-07-18 Thread Dr. David Kirkby
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

[sage-devel] Re: Can a few of you compile this 23 line program.

2009-07-18 Thread Dr. David Kirkby
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

[sage-devel] Re: Can a few of you compile this 23 line program.

2009-07-18 Thread Dr. David Kirkby
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

[sage-devel] Re: Can a few of you compile this 23 line program.

2009-07-18 Thread MaxTheMouse
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-

[sage-devel] Re: Can a few of you compile this 23 line program.

2009-07-18 Thread Jason Grout
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:[~]