Re: Symbol table




Betov wrote:

First, for RosAsm, i was in need of a good Memory Manager,

Apparently, you still are. Else why would your symbol table code used
fixed memory allocation for the size of the symbol table?

because, in such a big App, making use of so many various
Buffers, i had end up with problems and bugs, that were a
real hell to point out.

Funny, most other assembler authors don't have these sorts of problems.
And most of them do use reasonable dynamic (on a per-symbol basis)
symbol table allocations.


The main concern, with all of this, is not the sizes of
the block, and their Management (relatively easy), but
the _Speed_ and the ease of use.

The main concern should be correctness. Not speed. Not ease of
implementation. This is where your code fails.


It might also be of interrest to take a look at the MASM
OOP (at their Board), in case they would have made some
progresses or researches, in that area.

This subject is almost completely unrelated to OOP.


In general, Rene, someone whose symbol table code pseudo-statically
allocates storage for the entire symbol table the way your's does
should be careful about recommending their approach to others.

KJH -- this is the guy who has refused to fix a symbol table allocation
defect in his assembler for the past two years. So I'd take what he
says with a *big* grain of salt.

Note, btw, that if you allocate large chunks of memory at one time (say
64K, or multiples of 64K) and then parcel out the memory chunks using
your own localized memory manager, performance of the OS allocation
code is nearly irrelevant.
Cheers,
Randy Hyde

.



Relevant Pages

  • Re: How to release heap memory that is marked as free
    ... As I said, fragmentation is a very serious problem, and one of the most serious problems ... my allocator was accused of using massive amounts of memory. ... I'm going to have to re-think the memory allocation that I'm ... process's 'working set'. ...
    (microsoft.public.vc.mfc)
  • Re: [PATCH 00/28] Swap over NFS -v16
    ... memory they can consume. ... So we need the extra (skb) ... included in the reserve? ... if the allocation had to dip into emergency reserves, ...
    (Linux-Kernel)
  • Re: Memory leak with CAsyncSocket::Create
    ... read my essay on how storage allocators work. ... Create method is consuming system memory that is not released back to ... The memory consumption is either shown as "Mem Usage" on the Task ... many levels of allocation going ...
    (microsoft.public.vc.mfc)
  • Re: OT: C++ overloading operators
    ... dynamic allocation, no matter how many "clever tricks" are used... ... though there's enough memory in the system, ... all these "flexible data types" map into CPU command ... The computing environment is completely ...
    (comp.dsp)
  • Re: Memory Management
    ... The program is a bunch of DLLs. ... I'm still using the CRT's malloc and free to allocate memory. ... If the application makes a memory allocation request, ... I have implemented a memory manager for some SDK I'm working on (a ...
    (microsoft.public.vc.language)