A modest proposal: eliminate template code bloat

H. S. Teoh hsteoh at quickfur.ath.cx
Sun Apr 8 19:14:22 PDT 2012


On Mon, Apr 09, 2012 at 10:59:26AM +1000, Daniel Murphy wrote:
> "Artur Skawina" <art.08.09 at gmail.com> wrote in message 
> news:mailman.1480.1333900846.4860.digitalmars-d at puremagic.com...
> >
> > Note that my point is just that the compiler needs to emit a dummy
> > so that the addresses remain unique, eg
> >
> >   module.f!uint:
> >       jmp module.f!int
> >
> 
> Or use a nop slide before the start of the function.  Since we're
> modifying the object file format anyway, it would be trivial for the
> compiler to mark functions which have their address taken as needing a
> unique address. 
[...]

Why is it so important to have unique addresses for functions?


T

-- 
BREAKFAST.COM halted...Cereal Port Not Responding. -- YHL


More information about the Digitalmars-d mailing list