Yann Guidon wrote: > Yann Guidon wrote: >> Yann Guidon wrote: >>> Command line parameters are >>> much more practical :-) Did I miss something ? >> yes : environment variables ! >> man 3 getenv :-) > > here is the source code : > http://ygdes.com/GHDL/ghdl_env/ > It can only read integers but it's > a great feature :-) I'm sure it will > be useful to at least one subscriber here. > > There is also the source code for the > upcoming article that deals with real-time clocks > http://ygdes.com/GHDL/clk/ > > Comments are welcome ! > > yg
Other solution: use a script or program that does the following steps: 1) create a temporary directory 2) create a file config.conf in this directory from the arguments passed to the script. 3) cd to the temporary directory 4) launch the executable compiled with ghdl 5) the vhdl program can parse the file config.conf using relative path from working directory and get the arguments/configuration 6) finally remove the temporary dir The user run the script instead of runing directly the vhdl program. The script can parse easily the command line arguments and create a simple config.conf. _______________________________________________ Ghdl-discuss mailing list [email protected] https://mail.gna.org/listinfo/ghdl-discuss
