Technical data
Compiling and linking FLI and PLI applications
ModelSim EE/PLUS Reference Manual VHDL Foreign Language Interface and Verilog PLI
-
455
for AIX 3.2 (choose gcc or cc compiler commands)
gcc compiler:
gcc -c -I/<install_dir>/modeltech/include app.c
ld -T521 -H512 -btextro -bhalt:4 -bnodelcsect\
-o app.sl app.o -e _nostart -bE:app.exp\
-bI:/<install_dir>/modeltech/rs6000/mti_exports
cc compiler:
cc -c -I/<install_dir>/modeltech/include app.c
cc -o app.sl app.o -bE:app.exp\
-bI:/<install_dir>/modeltech/rs6000/mti_exports\
-bM:SRE -e _nostart
for AIX 4.1
cc -c -I/<install_dir>/modeltech/include app.c
ld -o app.sl app.o -bE:app.exp\
-bI:/<install_dir>/modeltech/rs6000/mti_exports\
-bM:SRE -bnoentry -lc
for AIX 4.2 (choose gcc or cc compiler commands)
gcc compiler:
gcc -c -I/<install_dir>/modeltech/include app.c
ld -bpT:0x100000000 -bpD:0x20000000 -btextro -bnodelcsect\
-o app.sl app.o -bI:/<install_dir>/modeltech/rs6000/mti_exports\
-bnoentry
gcc compiler:
cc -c -I/<install_dir>/modeltech/include app.c
cc -o app.sl app.o -bE:app.exp\
-bI:/<install_dir>/modeltech/rs6000/mti_exports\
-G -bnoentry
The
app.exp
file must export the C initialization function:
#!
app_init (for FLI)
or
init_usertfs (for PLI)