mam...@gmail.com
unread,Feb 7, 2015, 10:32:52 AM2/7/15You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
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.