On Tue, 2015-05-05 at 21:07 +0200, Tristan Gingold wrote:

> > At least gcc could simplify away all generate statements and other
> > generic-dependent branches. These are often used with a low
> > granularity so a noticeable speedup could be obtained there.
> 
> Not really.  This should be handled before gcc, as otherwise
> generics aren't anymore constants!

Yes, this is what I meant: by giving all VHDL files at once to GHDL,
and indicating to GHDL all generics have the exact wanted value for
the simulation, all generics are considered constants. GHDL can
replace all occurrences before passing everything to gcc.

Also, top-level generics are then optimized away and are no longer
available for execution-time -gNAME=VALUE options, but this is what we
want (what I want at least ;-) ).

Adrien


_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to