Groups | Search | Server Info | Login | Register
Groups > comp.os.linux.powerpc > #61
| From | playforvoices <play_useirc@posteo.jp> |
|---|---|
| Newsgroups | comp.os.linux.powerpc |
| Message-ID | <1048345056445101187.450462play_useirc-posteo.jp@reader.xsusenet.com> (permalink) |
| Subject | Re: linux - 3.2.0-4-powerpc64 [Debian GNU/Linux 7 (wheezy)] -- gcc only 32-bit pointers - how get 64-bit pointers? |
| References | <4c4d1045-7984-43ea-837a-b13bdbbe9a72@googlegroups.com> |
| Organization | xsusenet |
| Date | 2015-02-08 15:15 +0000 |
<mamfelt@gmail.com> wrote: > I am 'amazed' by the gcc compiler (picked up via apt-get install ...) > > It seems it is only giving 32-bit pointers. > > Let's assume I have done something wrong - please tell me what. > > "ptr.c" [New File] 9 lines, 181 characters written > root@x066:/data/smoker/perl-blead# gcc -o ptr ptr.c > root@x066:/data/smoker/perl-blead# ./ptr > size of Char Pointer is: 4 bytes > > root@x066:/data/smoker# apt-get install gcc > Reading package lists... Done > Building dependency tree > Reading state information... Done > gcc is already the newest version. > gcc set to manually installed. > 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. > root@x066:/data/smoker# gcc --version > gcc (Debian 4.6.3-14) 4.6.3 > Copyright (C) 2011 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > > > p.s. Also tested on ubuntu > > root@x067:/home/michael# gcc -o ptr ptr.c > root@x067:/home/michael# ./ptr > Size Char Ptr:4 > Size Void Ptr:4 > root@x067:/home/michael# gcc --version > gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2 > Copyright (C) 2013 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. To me it seems, you have a 64bit kernel and a 32bit userland. So the gcc only supports 32bit. But I'm not sure about that.
Back to comp.os.linux.powerpc | Previous | Next — Previous in thread | Find similar
linux - 3.2.0-4-powerpc64 [Debian GNU/Linux 7 (wheezy)] -- gcc only 32-bit pointers - how get 64-bit pointers? mamfelt@gmail.com - 2015-02-07 07:32 -0800 Re: linux - 3.2.0-4-powerpc64 [Debian GNU/Linux 7 (wheezy)] -- gcc only 32-bit pointers - how get 64-bit pointers? Richard Kettlewell <rjk@greenend.org.uk> - 2015-02-07 17:02 +0000 Re: linux - 3.2.0-4-powerpc64 [Debian GNU/Linux 7 (wheezy)] -- gcc only 32-bit pointers - how get 64-bit pointers? playforvoices <play_useirc@posteo.jp> - 2015-02-08 15:15 +0000
csiph-web