On Jan 14, 2008, at 1:39 PM, Marcin wrote: > hello > thank you for your responses. > > Here goes my another question : > As far as i understand, class' data goes to default section - where > whole > program is being kept (all data from instances of that classes - from > objects ? right ?) > > so is that possible to construct a class which uses data larger then > segment > size ? i've thought about dynamic allocation , where class datas are > only > pointers to structer which i allocate in methods of that class. But if > methods are in different segment's than those pointers it doesnt > work ? > right ?
Wrong. You have a fundamental misunderstanding of what sections are. On the m68k, pointers are 32 bit and can point anywhere in memory. However, instruction jumps are limited to 32k offset from the current instruction pointer. Putting your code in sections ensures that you will never exceed this 32k offset, because the compiler will essentially generate a double jump. For your purposes, code and data are completely unrelated. Why don't you stop overanalyzing this and just try some things to see what works. -- Dave Carrigan [EMAIL PROTECTED] Seattle, WA, USA
PGP.sig
Description: This is a digitally signed message part
