Re: Garbage collection problems



jacob navia wrote:
[...]
This depends on the application but it is obviously not true
for the type of applications I have ported (GUI programs in C, debugger,
IDE, make utility) The ONLY change I did was

#define malloc(a) GC_malloc(a)

#define free(a)

Of course I do NOT write pointers into disk files and expect them
there to be read after the machine is turned off :-)

Neither do I do XORing of pointers, etc etc.

Ok, that's great, I'm glad it works for you.

Note that what you're describing (replacing malloc with GC_malloc, and making free a no-op) is exactly what I had (incorrectly?) assumed you were talking about. Your response was sarcasm and abuse. Admittedly you're now talking about doing it at the application level rather than at the implementation level (I think).

Normal applications like 99.9999 C applications that can use the GC
without any problems!

Is 99.9999 intended to be an exaggeration, or do you really think the number is that high (I assume it's a percentage)?

--
Keith Thompson (The_Other_Keith) kst-u@xxxxxxx <http://www.ghoti.net/~kst>
Looking for software development work in the San Diego area.
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
.



Relevant Pages

  • Re: Whats the position of pointers
    ... The basics ARE simple and ... any teacher worth his salt can get it across with a debugger and an OHP ... Normally one is only interested in ones local implementation. ... Using a debugger in teaching pointers (for C; ...
    (comp.lang.c)
  • Problem with the compiler? Pointers? Unknown.
    ... Is there a major bug in the Visual C++ .NET compiler version 7.1.3088 or what? ... I have one function called FullUnloadwhich checks the pointers for NULL, ... The debugger reports m_pMap as being 0xFFFFFFFF still, ... The next function accepts szFinalPath as a parameter: ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Garbage collection problems
    ... IDE, make utility) The ONLY change I did was ... Neither do I do XORing of pointers, ... That would make it impossible to use third party libraries ... jacob at jacob point remcomp point fr ...
    (comp.lang.c)
  • Re: Whats the position of pointers
    ... The basics ARE simple and ... any teacher worth his salt can get it across with a debugger and an OHP ... Normally one is only interested in ones local implementation. ... I *know* that in my style of teaching that pointers and similar are no ...
    (comp.lang.c)
  • Re: String Comparision
    ... modify the strings. ... probably means he was misinterpreting the output from his debugger. ... When pointers s and t get modified (which we all agree is the actual ... Since he was in the realm of undefined behavior ...
    (comp.lang.c)

Loading