Thread View: gnu.g++
1 messages
1 total messages
Started by Paul Otto
Mon, 15 Jan 1990 17:21
cross-compiling on SPARC architectures
Author: Paul Otto
Date: Mon, 15 Jan 1990 17:21
Date: Mon, 15 Jan 1990 17:21
24 lines
1762 bytes
1762 bytes
Using g++ (version 1.35.1-) we found that programs compiled on SUN-4/110's (running SunOS 4.0) would run OK on SparcStation-1's (running SunOS 4.0.3c), but not vice versa. In particular, programs compiled on the SparcStations would crash with a segmentation violation when we tried to run them on the 4/110's. The reason for this (although I do not know exactly why!) is that the SUN-4/110's use a system page size of 8192 bytes (in memory management etc), and the SparcStation-1's use 4096 bytes. As distributed, the GNU C++ linker gets these numbers from the operating system at run time (using the getpagesize system call), and uses them to align binaries appropriately. This meant that binaries compiled on the 110's would work on the SparcStations but the reverse wasn't always true. If "newld.c" in the g++ source is hacked so that the linker thinks that the page size is 8192 on SparcStations, this problem appears to go away. (BTW: SparcStation 4/370's have a page size of 8192.) Paul ----------- Paul Otto, Canon Research Centre Europe Ltd., 19/20 Frederick Sanger Rd, Surrey Research Park, Guildford, Surrey, GU2 5YD, UK. NRS: otto@uk.co.canon ARPA: otto%uk.co.canon@nsfnet-relay.ac.uk UUCP: otto@canon.uucp PATH: ..!mcvax!ukc!uos-ee!canon!otto Tel: +44 (0) 483 574325 Fax: +44 (0) 483 574360
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads