Page 1 of 1
some questions
Posted: Wed Nov 19, 2003 10:21 am
by Zofu
I have some questions..
1-What is multiboot?
-------
2-Is there any difference between:
Code: Select all
typedef struct {
byte one;
word two;
dword three;
} NAME __attribute__ ((packed));
and
Code: Select all
typedef struct {
byte one __attribute__ ((packed));
word two __attribute__ ((packed));
dword three __attribute__ ((packed));
} NAME;
---------
3-what is cvs?
Re:some questions
Posted: Wed Nov 19, 2003 10:37 am
by Tim
Zofu wrote:1-What is multiboot?
It's a specification which defines the interface between a multiboot boot loader and a multiboot kernel. A multiboot loader can load any multiboot OS, and a multiboot OS can be loaded by any multiboot loader.
2-Is there any difference between:
I don't believe there is, but you could check sizeof() to make sure.
Personally, I'd use:
Code: Select all
#pragma pack(push, 1)
struct whatever
{
};
#pragma pack(pop)
3-what is cvs?
Concurrent Versioning System (?). It's a way of storing program sources, checking them out to multiple programmers without overwriting somebody else's changes, and tracking different versions of code. Source control itself is really useful, even with only one programmer. CVS in particular is OK, though experienced professional programmers tend to prefer, say, Perforce or Visual Sourcesafe.
Re:some questions
Posted: Wed Nov 19, 2003 2:54 pm
by Schol-R-LEA
Tim Robinson wrote: CVS in particular is OK, though experienced professional programmers tend to prefer, say, Perforce or Visual Sourcesafe.
Has VSS gotten that much better? I worked with it in 1997 and it was practically unusable (it was the main
cause of our revision-control problems, in fact), but I haven't looked at it in years so I don't know what's changed.
BTW, the best system I've used to date was Source Integrity by MKS.
Re:some questions
Posted: Wed Nov 19, 2003 4:17 pm
by Tim
The company I was with for the last year used VSS extensively, and I couldn't mention any problems at all with it.
Re:some questions
Posted: Wed Nov 19, 2003 5:44 pm
by df
ive had better results with a pack attribute on each struc line than one on the overall struct at the end. that never worked for me.
it would be better if gcc just implemented #pragma pack(1) that worked instead of this crap awefull __attribute__ ((packed)) ****...
Re:some questions
Posted: Wed Nov 19, 2003 7:05 pm
by Tim
DJGPP and Cygwin implement #pragma pack. If they didn't, my code wouldn't work.
(Of course, my code doesn't work, but not for that reason.)
Re:some questions
Posted: Thu Nov 20, 2003 2:21 am
by df
im sure when itested pragma pack(1) a few weeks back it made no difference...
i will have to test again.....