Nekochan Net

Official Chat Channel: #nekochan // irc.nekochan.net
It is currently Sat Apr 19, 2014 1:39 am

All times are UTC - 8 hours


Forum rules


Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.



Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: uint64_t support
Unread postPosted: Thu May 24, 2012 5:41 pm 
Offline
User avatar

Joined: Thu Nov 24, 2005 9:11 am
Posts: 214
Location: Aguascalientes, Mexico
Hi all!!

Is this data type uint64_t supported in O2, and previous SGI machines?
I'm trying to so something portable across SGI machines, but I´m not sure if this is supported in old machines.


Thanks in advance, guys!!

_________________
__Zacatito__Image 600 MHZ R14000; 17GBytes HD
__Nopalito__Image 200 MHZ R5000; 9GBytes HD
Guadalajara, Jal and Aguascalientes, Ags
Mexico


Top
 Profile  
 
 Post subject: Re: uint64_t support
Unread postPosted: Fri May 25, 2012 1:31 am 
Offline
User avatar

Joined: Tue Sep 25, 2007 1:00 am
Posts: 158
Location: Braunschweig (Germany)
BSDero wrote:
Hi all!!

Is this data type uint64_t supported in O2, and previous SGI machines?
I'm trying to so something portable across SGI machines, but I´m not sure if this is supported in old machines.


Thanks in advance, guys!!


If uint64_t is supported depends on the compiler, not on the machine.

If you use uint64_t with a 32-bit-compiler, the 64-bit-arithmetics is
emulated with 32-bit-commands.


Top
 Profile  
 
 Post subject: Re: uint64_t support
Unread postPosted: Fri May 25, 2012 1:41 am 
Offline
User avatar

Joined: Thu Jun 17, 2004 10:35 am
Posts: 3772
Location: Wijchen, The Netherlands
Any CPU since the R4000 can do 64bit arithmetic as long as you use the N32 or 64 ABI.

uint64_t is defined in <inttypes.h> and <sys/types.h>

_________________
Now this is a deep dark secret, so everybody keep it quiet :)
It turns out that when reset, the WD33C93 defaults to a SCSI ID of 0, and it was simpler to leave it that way... -- Dave Olson, in comp.sys.sgi

Currently in commercial service: Image :Onyx2:(2x) :O3x02L:
In the museum: almost every MIPS/IRIX system.
Wanted: GM1 board for Professional Series GT graphics (030-0076-003, 030-0076-004)


Top
 Profile  
 
 Post subject: Re: uint64_t support
Unread postPosted: Tue May 29, 2012 1:15 pm 
Offline
User avatar

Joined: Thu Nov 24, 2005 9:11 am
Posts: 214
Location: Aguascalientes, Mexico
What if I'm building a kernel module using uint64_t in a Fuel/Irix 6.5.30?

It's compatible backwards to, maybe O2 with 6.5.x?? Would it run on this machine?

Will be binary compatibility at kernel/driver level?

Thanks in advance guys

_________________
__Zacatito__Image 600 MHZ R14000; 17GBytes HD
__Nopalito__Image 200 MHZ R5000; 9GBytes HD
Guadalajara, Jal and Aguascalientes, Ags
Mexico


Top
 Profile  
 
 Post subject: Re: uint64_t support
Unread postPosted: Wed May 30, 2012 12:24 am 
Offline
User avatar

Joined: Tue Sep 25, 2007 1:00 am
Posts: 158
Location: Braunschweig (Germany)
BSDero wrote:
What if I'm building a kernel module using uint64_t in a Fuel/Irix 6.5.30?

It's compatible backwards to, maybe O2 with 6.5.x?? Would it run on this machine?

Will be binary compatibility at kernel/driver level?

Thanks in advance guys


I have no experience with building kernel modules. Are you building
a 32- or 64-Bit Kernel?

If you use the "-mips4" compiler-flag (I asume you have the MipsPro-compiler),
the generated code uses the full MIPS IV instruction set, which is supported
on R10000, R5000 and R8000 systems. O2 has a R5000, AFAIK.
http://techpubs.sgi.com/library/tpl/cgi-bin/getdoc.cgi?coll=0650&db=man&fname=/usr/share/catman/u_man/cat1/cc.z


Top
 Profile  
 
 Post subject: Re: uint64_t support
Unread postPosted: Wed May 30, 2012 12:36 am 
Offline
User avatar

Joined: Thu Jun 17, 2004 10:35 am
Posts: 3772
Location: Wijchen, The Netherlands
There is no binary compatibility. Kernel object code (and modules) is compiled separately for each IPxx family (IP27, IP35, IP32, ...).

Additionally, IP32 (the O2) uses 32bit pointers, the rest is 64bit.

_________________
Now this is a deep dark secret, so everybody keep it quiet :)
It turns out that when reset, the WD33C93 defaults to a SCSI ID of 0, and it was simpler to leave it that way... -- Dave Olson, in comp.sys.sgi

Currently in commercial service: Image :Onyx2:(2x) :O3x02L:
In the museum: almost every MIPS/IRIX system.
Wanted: GM1 board for Professional Series GT graphics (030-0076-003, 030-0076-004)


Top
 Profile  
 
 Post subject: Re: uint64_t support
Unread postPosted: Fri Jun 01, 2012 12:00 pm 
Offline
User avatar

Joined: Thu Nov 24, 2005 9:11 am
Posts: 214
Location: Aguascalientes, Mexico
I forgot completely that point about Kernel objects code, but it's true.

Well, i'm cooking something interesting, but I think more work is needed before have something useful.

Thank you guys.

_________________
__Zacatito__Image 600 MHZ R14000; 17GBytes HD
__Nopalito__Image 200 MHZ R5000; 9GBytes HD
Guadalajara, Jal and Aguascalientes, Ags
Mexico


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group