www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Documentation on DMD source

reply Daniel Keep <daniel.keep.lists gmail.com> writes:
Is there any guide to, or documentation for the DMD compiler source?

I'm currently trying to make TypeInfo_Function not completely useless,
but I'm not sure my code is actually being run.

  -- Daniel
Apr 18 2009
parent reply Daniel Keep <daniel.keep.lists gmail.com> writes:
Daniel Keep wrote:
 Is there any guide to, or documentation for the DMD compiler source?
 
 I'm currently trying to make TypeInfo_Function not completely useless,
 but I'm not sure my code is actually being run.
 
   -- Daniel
Found this page: http://www.prowiki.org/wiki4d/wiki.cgi?DMDSourceGuide although it's fairly bare-bones. -- Daniel
Apr 18 2009
parent reply "Unknown W. Brackets" <unknown simplemachines.org> writes:
You'll get a lot of use out of defining the debugs for #ifdefs, and/or 
uncommenting printfs and following it.

If your code may not be running, use a breakpoint or printf to ensure it is.

-[Unknown]


Daniel Keep wrote:
 
 Daniel Keep wrote:
 Is there any guide to, or documentation for the DMD compiler source?

 I'm currently trying to make TypeInfo_Function not completely useless,
 but I'm not sure my code is actually being run.

   -- Daniel
Found this page: http://www.prowiki.org/wiki4d/wiki.cgi?DMDSourceGuide although it's fairly bare-bones. -- Daniel
Apr 18 2009
parent Daniel Keep <daniel.keep.lists gmail.com> writes:
Unknown W. Brackets wrote:
 You'll get a lot of use out of defining the debugs for #ifdefs, and/or
 uncommenting printfs and following it.
 
 If your code may not be running, use a breakpoint or printf to ensure it
 is.
 
 -[Unknown]
I finally found out why my changes weren't working. Because typinf.c is the ONE file in the frontend that doesn't get passed $(XFLAGS) when built. Guess where I put the -D for my changes? Go on, guess. You'll never get it. *bangs head repeatedly* Now I have an entirely DIFFERENT problem; I officially have NO idea what the code I modified does. :'( -- Daniel
Apr 19 2009