Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Question about variables

4 views
Skip to first unread message

Kip Warner

unread,
May 18, 2002, 11:44:18 PM5/18/02
to
Hey guys,

I have learnt in assembly about paragraph boundaries and how they are a
good place for a segment to begin. Does this mean that setting array
lengths in C/C++ to multiples of 10h is faster because they are always
divisible by 10h (16d) making the job for the address bus easier? ie

char szBuffer[1024];
char szBuffer[512];
char szBuffer[256];
char szBuffer[128];
char szBuffer[64];
char szBuffer[32];
char szBuffer[16];

Kip

blip

unread,
Jun 18, 2002, 9:55:57 AM6/18/02
to
Actually aligning your variables increases speed, but C/C++ is so slow
it really won't help. Paragraph alignment is often used in real-mode
memory allocation routines.

0 new messages