alt.tvShow header Prev. Next
Episode of Everybody (At Microsoft) Hates Chris December 5 http://groups.google.com
ericmatteson2003november (ericmatteson2003november@hotmail.com) 2009/12/05 09:20

 Episode of Everybody (At Microsoft) hates Chris ::
  Getting used to 64 bits.
Copyright C 2009 By Eric Matteson. Permission
is granted to copy the plain text version of this script
and to publish it on the Internet.
 [ Secne 1   Chris and Greg are in CS 967  in CE 104 ]
 ( It is the beginning of Fall 2009 semester )
CHRIS
 This 64 bit Linux is hard to install. They are giving us only
one partition.
GREG
 On large memory 64-bit computers no swap file is needed.
/boot will be part of / if no seperate partition is allocated
for it.
 If the 64-bit linux is a SECOND LINUX that is dual booted
with 32-bit Linux and is installed after 32-bit Linux go into
advanced bootloader options.
 Then in advanced bootloader options place grub bootloader
for this second linux where THIS LINUX begins. on / if there is
no /boot.
 Then in the FIRST LINUX add lines to /boot/grub/grub.conf
 rootnoverify (hd0,N-1)
 chainloader +1
Where N-1 represents possibly a single digit that is one less
than the partition number where the second linux starts.
( /boot  or use / if there is no /boot partition. )
CHRIS
 This paperwork is incorrect. It fails to show how to install Linux
correctly.
GREG
 Go to customize now in 64-bit Centos Linux install options.
Then in development catagory at the top
choose
Development Tools
Development Libraries
and then at the bottom choose
X Software Development
CHRIS
 is that all??
GREG
Yes. If all you want is a fully functional easiest to install Linux.
But for CS967 class only some servers might be helpful.
in the SQL server check choose optional packages
and add in SQL development in php.
I do not remember the exact spelling.
CHRIS
O.K.
It is installing now.
( After Linux installs Chris reads the paperwork again
su
Morris
/sbin/chkconfig --level 235 httpd on
/sbin/chkconfig --level 235 mysqld on
/sbin/shutdown -r now
Then rebooting
whereis gcc
/usr/bin/gcc
Chris then downloads edelev16.c from a previous episode about
32-bit Linux. Then he compiles it.
Then when he tries to run it on 64-bit Linux
./edelev16.out
segmentation fault
How come edelev16 segmentation faults on 64-bit Linux
after having run so well in new 32-bit Fedora 10 Linux ??
GREG
 This is a serious problem. High level language
programs are supposed to be protected from the low-level
details of assembley language programming like how many bytes
per word.
[ Scene 2  Middle of semester.   Outdoors. ]
CHRIS
 This is a very bad semester. Golf carts are roaming everywhere
so pedestrians are not safe here at GlenOak Communnity College.
 President Steve Ballmer ( Of Microsoft ) even signed a certificate
of honor for this school. This school is a high ranking member of
the Microsoft Academic Alliance.
 When will Microsoft ask its schools that are within its academic
alliance to make sure that all golf carts stay in the
street instead of being driven on sidewalks by school employees and
endangering pedestrians????
Does Microsoft the leader of the Microsoft Academic Alliance
care about the saftey of current and future Microsoft customers ??
Remember that if a student is being run over by a golf cart outside
of the street that is probably a Microsoft Customer who is being
run over. Microsoft should care more about its customers.
GREG
 I am also hoping that Catholic pedestrians who are being chased
by Golf carts on campus will complain to their priests so the
priests will notify the Pope of that deadly sin.
 I hope that the Pope will declare it a mortal sin to drive
any motor vehicle including any golf cart on any sidewalk or lawn
or beach so all golf carts will have to stay IN THe STREET
if the driver wants to be in good standing in the Catholic Church.
 When state paid employees drive outside of the street they run over
and hurt and kill helpless pedestrians using taxpayer money. This
is like taxpayer funded ABORTIONS even though the pedestrians have
already been born. ( Taxpayer funded fourth trimester abortions. )
CHRIS
 Did you find out why edelev16.c has a segmentation fault
on 64-bit Linux ??
GREG
 Two reasons. First, the edelev series of text editors included code
that shared memory in common between fixed size 4 byte pointers
and characters in the same array. Changing the length of the pointers
and doubling the array size and repositioning pointers by doubling
byte address pointers is too risky because what if sizes of pointers
that were 4 bytes change again from 8 bytes to 32 bytes ??
 The other reason is that all pointers to beginnings of arrays
have to be 64-bits instead of 32-bits in 64-bit operating systems
including Linux. ( A big mistake is that integers are STILL only 32
bits
so all pointers previously stored in integers have to be stored in
64-bit long variables or array elements instead of 32-bit integers )
Past textbooks have placed pointers into 32-bit integers in the
recent past. This has to be changed in a lot of programs.
 The good news is that edelev20.c already has the code that shares
pointers in the same array of memory as characters has been removed
while simplifying that program to shrink it.
 edelev20.c can be fixed by just changing those remaining pointers
to beginnings of things from 32-bit integers to 64-bit longs.
 I really hate it that the C++ textbook has been asking students
to save pointers to beginnings of arrays in integers.
Now we have to use long variables to store pointer values
in 64-bit operating systems including Linux.
 CHRIS
  Another surprise is that the new 64-bit Linux does not run
Windows Imitation Natural Environment.
 GREG
  One compromise is to multi-boot so both 32-bit and 64-bit
Linux are installed so your favorite 32-bit programs can
still be run on 32-bit Linux. The AMD Athlon-64 and Intel
X86_64 cpus are primarily traditional 32-bit cpus with
hard-to-use 64-bit capability added. These CPUs are primarily
for running 32-bit programs at very high speed.
 Most 32-bit Linuxes are still fully supported.
 [ Scene 3.  Almost end of semester ]
CHRIS
 My address book still does not work.
putting in a blank space into the database after a line of text
will confuse the simple search that compares whole strings
with whole strings.  Even the case of characters has to match.
GREG
 There is some good news. edelev20.c has been FIXED.
the remaining pointers to beginnings of arrays have been changed
from 32-bit integers to 64-bit longs and edelev20.c compiles
and runs on 64-bit Linux now while still supporting 32-bit
Linux!!
 edelev20.c did not have to be fixed just for 64-bit CPUs.
we could have just dual booted with 32-bit Linux and still
run old edelev16.c on 32-bit Linux only. Mount the data
partition with text files onto both Linuxes and share.
 The real reason that edelev20.c has been fixed up to run
on 64 bit Linux is based on the hope that a much smaller amount
of additional fixing later can fix it to run on
a 256 bit Linux whos CPU might have nothing in common
with 32 bit CPUs of the recent PAST.
 We actually need 256 bit CPUs. 64-bits is just a temporary
transitional step to the desired 256 bit CPUs.
CHRIS
 How come they did not change integers to 64-bits on 64-bit
operating systems ??
GREG
 That would have been a better choice. The edelev series of text
editors
still would have needed some fixing but most programs would be
better if integers had been lengthened to 64 bits.
CHRIS
 Are people going to be dissapointed that 64-bit Linux does not
support
32-bit wine ??
GREG
 Yes. But with edelev20.c already fixed and the newly released
xwview14.c
bitmap picture viewer program with a choice between the high color
mode started in xwview12.c with monochome thresholds added on for
high speed one-bit-per-pixel mode we do not really need wine to run
programs that are written directly to run on Linux XWindows.
Programs can be written in C to run directly on Linux XWindows
without needing Microsoft Windows or wine. The programming style is
different and takes getting used to.

 [ Link to edelev20.c text editor program ]
http://groups.google.com/group/alt.student.affairs.net/msg/3febb2ae83e7f5af?dmode=source

 [ Link to xwview14.c  *.bmp picture viewer program ]
http://groups.google.com/group/alt.tv/msg/45063d8f167cbf16?dmode=source

 [link to previous episode of Everybody Hates Chris ]
http://groups.google.com/group/alt.tv/msg/49450c061ae1727a


Next Prev. Article List         Favorite