From: mockturtle <framefritti@gmail.com>
Subject: Re: A suggestion about interfacing with C
Date: Tue, 3 May 2016 14:53:49 -0700 (PDT)
Date: 2016-05-03T14:53:49-07:00 [thread overview]
Message-ID: <77b74337-9dd2-4918-aab6-69e4b0b7935e@googlegroups.com> (raw)
In-Reply-To: <45cb9b19-b470-4649-843a-7b9f88411e6e@googlegroups.com>
Thank you everyone for your replies.
In the end, I decided to go for the "token" approach (suggested by Maciej) that I already used in some other case. The reason to use this approach is that the "send" functions of the library require the message header and payload to be stored inside a special struct, whose definition is unknown (at least, very difficult to find :-) and that the user manipulates using some library functions. It turns out that it is simpler to build the payload on the Ada side, then convert it to a "C string" that is moved to the C side where the final assembling -- before transmission -- is done.
Thank you again.
Riccardo
prev parent reply other threads:[~2016-05-03 21:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-02 16:45 A suggestion about interfacing with C mockturtle
2016-05-02 18:46 ` Simon Wright
2016-05-02 19:07 ` Jeffrey R. Carter
2016-05-02 19:40 ` Per Sandberg
2016-05-02 20:14 ` Maciej Sobczak
2016-05-03 21:53 ` mockturtle [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox