MedVision ad

COMP 1021 Assn2 (1 Viewer)

Ragerunner

Your friendly HSC guide
Joined
Apr 12, 2003
Messages
5,472
Location
UNSW
Gender
Male
HSC
2003
Do we need to edit any of the code he gives us?

Or do we just write our own stuff in the space given? i.e. this part

// *******************************************************************
// ** YOU WILL NEED TO COMPLETE THE FOLLOWING SECTION FOR STAGES 1 - 3
// *******************************************************************
 

sunny

meh.
Joined
Jul 7, 2002
Messages
5,350
Gender
Male
HSC
2002
Ragerunner said:
Do we need to edit any of the code he gives us?

Or do we just write our own stuff in the space given? i.e. this part

// *******************************************************************
// ** YOU WILL NEED TO COMPLETE THE FOLLOWING SECTION FOR STAGES 1 - 3
// *******************************************************************
It should say somewhere in the spec, but usually andrewt doesn't want you changing his template code unless he says so.
 

ace

is retired
Joined
Oct 25, 2002
Messages
564
Location
Australia
Gender
Male
HSC
2003
Ragerunner, was referring to COMP1021

Andrew T isn't that nice, what templates I ask, what?!
 

sunny

meh.
Joined
Jul 7, 2002
Messages
5,350
Gender
Male
HSC
2002
tonberry_kun said:
whats dcc ? compared to gcc that is...
dcc compiles your program with alot more debug information. If you ever seg fault with gcc its not very helpful. dcc should be able to tell you where your program seg faulted. It also checks for memory problems, like out of bounds indices.

Basically, it your program ever behaves strangely when compiled with gcc, its probably a memory problem, use dcc instead.
 

McLake

The Perfect Nerd
Joined
Aug 14, 2002
Messages
4,187
Location
The Shire
Gender
Male
HSC
2002
underthesun said:
does -pedantic even exist in dcc? i thought its only -Wall and -O etc

im gonna try it, it might give me some insight (ommmmm)
I assure you it exists ...
 

ace

is retired
Joined
Oct 25, 2002
Messages
564
Location
Australia
Gender
Male
HSC
2003
I think apparently there is a verbose mode also, like DCC isn't verbose enough
 
Last edited:

tonberry_kun

O RLY?
Joined
Jun 21, 2003
Messages
818
Gender
Undisclosed
HSC
2003
if dcc does all that, why even use gcc at all? :confused:

i remember having some segmentation faults in a lab using gcc which didnt give me a reason why, or where... so it took ages to debug...

is there any advantage of using gcc over dcc?
 

sunny

meh.
Joined
Jul 7, 2002
Messages
5,350
Gender
Male
HSC
2002
tonberry_kun said:
if dcc does all that, why even use gcc at all? :confused:
Don't use gcc.

tonberry_kun said:
i remember having some segmentation faults in a lab using gcc which didnt give me a reason why, or where... so it took ages to debug...

is there any advantage of using gcc over dcc?
In your final build use gcc. Programs compiled using dcc have a lot more debug information compiled into the program. Even with -O3 on, a dcc compiled program is much slower than a gcc compiled program.
 

McLake

The Perfect Nerd
Joined
Aug 14, 2002
Messages
4,187
Location
The Shire
Gender
Male
HSC
2002
tonberry_kun said:
if dcc does all that, why even use gcc at all? :confused:

i remember having some segmentation faults in a lab using gcc which didnt give me a reason why, or where... so it took ages to debug...

is there any advantage of using gcc over dcc?
No. Except all *NIX will have gcc, not everything has dcc.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top