#C++ or C
6 messages in this thread
I am starting a software project and need some advice. I recently
upgraded to SAS 6.50 and have been relearning the compiler. I have
previously done only a small amount of C programming, all on the Amiga.
I have been looking in MUI to use to build my interface and it is here
that I am being exposed for the first time to the concepts in Object
Oriented Programming. The exposure is causing me to consider to program
my project in C++ vice C. I would appreciate any opinions anyone has on
this subject.
Also, I thought I read somewhere that SAS's C++ has some sort of
problems with it. Is there any truth to that?
._ _ _ INTERNET: mshea@math.arizona.edu
| | |ichael _>hea COMPUSERVE: 76665,3360
there is a patch online to get you upto 6.51. As for books, there is one
called simple C++ by ~someone cogswell~ I think, it covers basic concepts,
in an easy way.
Matt,
I guess I misspoke. I received and installed the 6.51 patch with my
upgrade.
The one thing I don't like about C++ for SAS is that it employs a C++
to C translator and then calls sc on the translated file. Consequently,
compiling a C++ file is SLOW. Of course, with a dedicated C++ compiler,
C++ compilation might still be slower than C, but I don't think this much
slower.
._ _ _ INTERNET: mshea@math.arizona.edu
| | |ichael _>hea COMPUSERVE: 76665,3360
Speed well yes, umm, I have an 040, so it seems ok to me. Can you use a
build like controlled compile, with lots of blocks of code?
Well, I have an 030 at 28 Mhz, not exactly a slow poke, but not as fast as
yours. I bet if you compare compilations in C to C++ you would be
surprised how slow C++ is because it has to first translate the C++ file
into C.
I do plan to use smakefiles and link together smaller units of code so I
don't have really huge files to compile.
._ _ _ INTERNET: mshea@math.arizona.edu
| | |ichael _>hea COMPUSERVE: 76665,3360
What do you do to get the debugger to work on your 040..I recently started
playing with it..
(and can't quite figure it all out.)
Alex