lionel petit
2005-08-25 10:01:28 UTC
Hi,
I'm thinking of what is the best way to implement components in C with the
least overhead than possible.
I read on the Avery's advogato page
(http://advogato.org/person/apenwarr/diary.html?start=35) that a successful
try was made in making dangerous assumptions on the vtable layout in C++.
It's the solution I have found before reading its paper... I know the vtable
layout is compiler dependant and, for some of them, you have to add some
padding to adjust the vtable. Despite this unpleasant padding, this solution
is very interesting because there is as much overhead as in C++!
What's your opinion on this and do you suggest other solutions? I would not
like to use an intermediate binary format and have some generation of code at
execution or create bridges which redirect all calls to the component.
Regards,
I'm thinking of what is the best way to implement components in C with the
least overhead than possible.
I read on the Avery's advogato page
(http://advogato.org/person/apenwarr/diary.html?start=35) that a successful
try was made in making dangerous assumptions on the vtable layout in C++.
It's the solution I have found before reading its paper... I know the vtable
layout is compiler dependant and, for some of them, you have to add some
padding to adjust the vtable. Despite this unpleasant padding, this solution
is very interesting because there is as much overhead as in C++!
What's your opinion on this and do you suggest other solutions? I would not
like to use an intermediate binary format and have some generation of code at
execution or create bridges which redirect all calls to the component.
Regards,
--
Lionel Petit
Lionel Petit