On 05/08/15 10:30, Attila Kinali wrote:
Moin,
I just tried the VHPI example from Yann Guidon [1] and get
a different behaviour when using ghdl with llvm than with gcc:
gcc:
---
# sh access.sh
access_test.vhdl:31:5:@0ms:(report note): integer=0
access_test.vhdl:33:5:@0ms:(report note): integer=42
access_test.vhdl:35:5:@0ms:(report note): integer=24
---
llvm:
---
# sh access.sh
access_test.vhdl:31:5:@0ms:(report note): integer=0
access_test.vhdl:33:5:@0ms:(report note): integer=42
access_test.vhdl:35:5:@0ms:(report note): integer=-1936036088
---
Also, the last output isnt stable with llvm, ie it changes
with each run.
The gcc version is ghdl 0.31 with gcc 4.8.2, the llvm version is
straight from hg (837) with llvm 3.5 (debian/testing)
Yes, the call convention has slightly changed in 0.33dev.
I plan to fix that, as there is no reason to change it for
foreign subprograms.
Do not hesitate to create a ticket if this is an important
point for you.
Tristan.
_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss