From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,68afa2364f735bc5 X-Google-Attributes: gid111c93,public From: patchkov@acs1.acs.ucalgary.ca (Serguei Patchkovskii) Subject: Re: gcc/egcs flags to turn off 64bit code generation? Date: 1999/01/13 Message-ID: <77inca$52i4@ds2.acs.ucalgary.ca>#1/1 X-Deja-AN: 432210809 References: <3H1n2.562$B21.116@news.rdc1.nj.home.com> Organization: The University of Calgary Newsgroups: comp.os.linux.alpha Sanjay Lal (sanjayl@home.com) wrote: : the time to do a proper port. I was wondering if gcc or egcs supported a 32 : bit mode similar to Digital's C/C++ compilers? The -taso mode supported by Digital C is not really a 32-bit mode. The only thing it does is to force all your code and data segments (including anything coming from shared libs) to be located in the lower 31 bits of the address space, which hides pointer truncation errors upon conversion to an integer. Apart from this, it is identical to the regular 64-bit compilation. At least for statically linked executables, you should be able to achieve a similar effect using appropriately small settings for -T{bss|data|text} ld options. /Serge.P