some questions

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Zofu

some questions

Post 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?
Tim

Re:some questions

Post 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.
Schol-R-LEA

Re:some questions

Post 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.
Tim

Re:some questions

Post 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.
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re:some questions

Post 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)) ****...
-- Stu --
Tim

Re:some questions

Post 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.)
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re:some questions

Post by df »

im sure when itested pragma pack(1) a few weeks back it made no difference...

i will have to test again.....
-- Stu --
Post Reply