Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Howto receive 4GB memory as one chunk, DPMI + Watcom C (Developers)

posted by Laaca(R) Homepage, Czech republic, 14.02.2019, 17:40

Yes! For text editor is definitely not needed the allocation of one huge buffer. Much better is to split the file into more buffers.
For example in my editor Blocek is every line on own buffer and these buffers are connected via structure called linked-list (in my implementation is it encapsulated double linked list).
Other possible solution is to connect lines by dynamic array (has some advantages and disadvantages over linked lists).

I didn't want to enter this discussion earlier because I considered it more as a theoretical discussion about allocating giant memory blocks.

---
DOS-u-akbar!

 

Complete thread:

Back to the forum
Board view  Mix view
15877 Postings in 1466 Threads, 269 registered users, 90 users online (0 registered, 90 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum