Next: Starting a simulation from a foreign program, Previous: Restrictions on foreign declarations, Up: Interfacing to other languages
You may add additional files or options during the link using the
-Wl, of GHDL
, as described in Elaboration command.
For example:
$ ghdl -e -Wl,-lm math_tb
will create the math_tb executable with the lm (mathematical) library.
Note the c library is always linked with an executable.