On 19/05/16 12:48, Christiano SA wrote:
The researcher made several codes to interfacing with ghdl, here:
http://ygdes.com/GHDL/
The fb code has a problem:
~/fb $ ghdl -a fb_ghdl.vhdl
Stored value type does not match pointer operand type!
   store i32 %101, [0 x i32]** @work__fb_ghdl__pixel
  [0 x i32]*
raised PROGRAM_ERROR : ortho_code_main.adb:294 explicit raise
ghdl: compilation error
One of the C functions can return an integer or pointer within the vhdl
depending on the parameter that it receives but in pure C code it
returns only long int because, after all, a pointer is integer too.

This is highly suspicious.  No, an integer is not a pointer and LLVM
doesn't like such aliasing.

I've isolated the problem in the following code:

Thank you for the small reproducer, that's really helpful to understand
the issue.

Regards,
Tristan.


_______________________________________________
Ghdl-discuss mailing list
Ghdl-discuss@gna.org
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to