Board index » delphi » Program-size limit!
edtt...@kkpc.ericsson.se (Baudkern)
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
|
edtt...@kkpc.ericsson.se (Baudkern)
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Program-size limit!
Hi!
I've heard there's a limit on how big a TP-program can be, 65k I think. Please reply anything I've soon reached 65k... /Baudkern "Hey, no brain, but what the heck!?" |
Scott F. Earne
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Program-size limit!QuoteIn article <4guf8n$...@erinews.ericsson.se> edtt...@kkpc.ericsson.se (Baudkern) writes: code segment exceeds ~64K (65536-8 bytes). Each unit has its own code segment, and you can usually add as many units as you need. OTOH, what you may be thinkin of is *data*. Between the data segment (all Quote>If so, I believe I have to use pointers. How am I to do that? I'm NOT good at TP/BP manuals should have a chapter about pointers. Also, you might look at Glenn Grotzinger's (hope I got that right!) TP tutorials at garbo.uwasa.fi for some useful explanations. Or just post some questions that'll help you figure 'em out! Quote>/Baudkern Scott F. Earnest |0100100001000001010010010100110000100000| sc...@whiplash.res.cmu.edu |0100010101010010010010010101001100100001| Head Pope, Non-Extant Temple of Afrodite, Goddess of Funky 70's Hairdos -><- YOU'VE BEEN LIED TO: Possession is only one tenth of the law. The other nine tenths is really STUPIDITY! |
s..
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Program-size limit!In a previous article, Ove B?ck <Ove.B...@derm.lu.se> wrote: Quote>Your EXE can be as big as you like it (as big as you can make it), but the size of your regardless ... Don't forget that you stack can be increased up to 64K with the However, something is seriously wrong with most programs if they even need The exceptions to the "generally" in the paragraph above usually involve Rob |
Hendrik T. Voelk
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Program-size limit!29 Feb 96 Hi folks, edtt...@kkpc.ericsson.se (Baudkern) wrote on 27.02.96 at e> I've heard there's a limit on how big a TP-program can be, 65k I think. No, it is not correct. One segment cannot exceed the size of 64kB but The only problem can be the data segments. There is exactly one data Any further questions? Mail me :-) cu Hendrik |
Scott F. Earne
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Program-size limit!QuoteIn article <4i1hic$...@slip.net> akl...@slip.net writes: would be nice to have multiple data segments, but this can slow down a system, because you every procedure would have to reload DS, and the fastest way (I think) is to have each procedure reload, whether it's redundant or not (checking DS would add even more overhead). In practical terms, there's a limit to everything. ;-) Quote>Of course for *global* data . . . to a file, run it through BINOBJ, link it to my program and build a pointer to it when I need it. So, in effect, you have static data, but it resides in one of a program's potentially many code segments. And if I want to twiddle the data under protected mode, I can just put space on the heap and copy it over (you can't write to a code segment in PM). Um, BTW, just *how* would you allocate *global* data on the heap, when it Quote>-- Scott F. Earnest | "I never had a life. I don't even know what sc...@whiplash.res.cmu.edu | life is." . . . "I have what you'd call a Life sucks, wear a helmet. | life." -- Ministry / "Crumbs" / Filth Pig |