Le 2014-01-12 07:35, Adam Jensen a écrit :
Perhaps some of the more knowledgeable GHDL users would post examples of
their API/ABI experiments. Some of the discussions that follow might
lead to an API/ABI document.

I have hacked external C/VHDL libraries some years ago and published
the results on GNU/Linux Magazine France (in french).
The source code of the experiments is there :
http://ygdes.com/GHDL/

I have had to solve certain ABI/API problems and gdb came to the rescue,
because the provided doc contains basic ABI info but nothing about complex data structures. I have cracked open the mystery of the string memory allocations
(hint : there's a parallel stack and mallocs, look at
http://ygdes.com/GHDL/ghdl_env/ghdl_env.c)
and I found how to access the screen's framebuffer memory directly (under Linux).
http://ygdes.com/GHDL/fb/fb_ghdl.vhdl
Among other things. But it's 4 years ago and I'm rusty now :-D
I have sold the copyright of the articles to the editor but the source code is under GPL.
That's why I've put the source code online.

More resources are welcome !
I know i'll want to hack it further in the coming years :-)

yg

_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to