Yann Guidon wrote: > I suppose that the return value and format is different from > how a string is sent to a child function (as a pointer to a structure). > > I don't want to spend my time reverse-engineering, so : > how does one use a C function to get a string from VHDL, > and/or return this string itself to other VHDL code ? > Can someone decribe the ABI ?
ok so no answer was sent to the list and I started trying decyphering the generated code with objdump. ADVICE TO EVERYBODY : compile your code with ghdl -a -Wc,-Os .... the code will be faster, smaller and easier to read... And ... wow, the binary has nothing in common with usual C code, it spends a lot of efforts checking everything, but I have still no idea about the ABI for transmitting strings from one function to another :-/ yg -- http://ygdes.com / http://yasep.org _______________________________________________ Ghdl-discuss mailing list [email protected] https://mail.gna.org/listinfo/ghdl-discuss
