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: acher@informatik.tu-muenchen.de (Georg Acher) Subject: Re: gcc/egcs flags to turn off 64bit code generation? Date: 1999/01/14 Message-ID: <77lje4$4ek$1@sunsystem5.informatik.tu-muenchen.de>#1/1 X-Deja-AN: 432664095 Distribution: world References: <3H1n2.562$B21.116@news.rdc1.nj.home.com> Organization: Technische Universitaet Muenchen, Germany Newsgroups: comp.os.linux.alpha Originator: acher@hphalle4.informatik.tu-muenchen.de In article <3H1n2.562$B21.116@news.rdc1.nj.home.com>, "Sanjay Lal" writes: |> I have several large pieces of code that are not 64 bit clean. |> Unfortunately, I do not have |> 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? Depending on the portability problems, some adaptions can be made very quickly: If there are any long-declarations in the source, you should change them to int, that fixes most inter-architecture-communication problems. If there are data structures for callbacks/function pointers and they are declared as an int, you can change them to long (64bit). I've managed to port some bigger programs (eg. gimp<0.99.12) with these simple rules and some manual work... -- Bye Georg Acher, acher@in.tum.de http://www.in.tum.de/~acher/ "Oh no, not again !" The bowl of petunias