Google C++ style guide

bearophile bearophileHUGS at lycos.com
Mon Oct 5 03:30:52 PDT 2009


Don:

> I've often thought that a pragma for a module to "don't generate module 
> info" would be very useful for executable size.

Do you use the LDC compiler?

LDC has the pragmas:
pragma(no_typeinfo): You can use this pragma to stop typeinfo from being implicitly generated for a declaration.

pragma(no_moduleinfo): You can use this pragma to stop moduleinfo from being implicitly generated for a declaration.

I've never used those yet, I'll try them soon.

But you meant something more global, module-wide. Maybe you can ask to LDC devs. I agree that having standard and not compiler-specific features is better.

Bye,
bearophile



More information about the Digitalmars-d mailing list