* [Xenomai-help] 32 bits libraries for x86_64 architecture
@ 2011-07-07 9:40 Kim Mathiassen
2011-07-11 11:19 ` Gilles Chanteperdrix
0 siblings, 1 reply; 5+ messages in thread
From: Kim Mathiassen @ 2011-07-07 9:40 UTC (permalink / raw)
To: xenomai
Hi
I am doing a project where I am going to use Labview for linux.
Unfortunately Labview only have a 32-bit version and I have a 64 bit
system. I want to use Xenomai with Labview for DAQ, and therefor I need
32 bits libraries that Labview can call. I read a message in the
mailing-list which where of a similar character:
https://mail.gna.org/public/xenomai-help/2008-05/msg00294.html
I have tried to compile the user-space Xenomai libraries with the m32
option, but I only get -ENOSYS error which implies that the function is
not implemented. Is there any plan to implement 32 bit wrappers for a 64
bit system? Do I have to install a 32 bit kernel in order to use Xenomai
with Labview? Does anyone have a suggestion on how to solve the problem?
I the message the linked to above, it was suggested that I could
implement the wrappers. Does anyone know about how much work this would
be? If it isn't a lot of work, maybe someone could point me to where in
the code I should start looking.
I am also thinking of making a 64 bit deamon that a 32 bit library can
communicate with. I am not sure if this will work, because I do not know
if there are IPC (InterProcess Communication) that can handle both 32
and 64 bit on Linux?
Best regards
Kim Mathiassen
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Xenomai-help] 32 bits libraries for x86_64 architecture
2011-07-07 9:40 [Xenomai-help] 32 bits libraries for x86_64 architecture Kim Mathiassen
@ 2011-07-11 11:19 ` Gilles Chanteperdrix
2011-07-11 12:55 ` Kim Mathiassen
0 siblings, 1 reply; 5+ messages in thread
From: Gilles Chanteperdrix @ 2011-07-11 11:19 UTC (permalink / raw)
To: Kim Mathiassen; +Cc: xenomai
On 07/07/2011 11:40 AM, Kim Mathiassen wrote:
> Hi
>
> I am doing a project where I am going to use Labview for linux.
> Unfortunately Labview only have a 32-bit version and I have a 64 bit
> system. I want to use Xenomai with Labview for DAQ, and therefor I need
> 32 bits libraries that Labview can call. I read a message in the
> mailing-list which where of a similar character:
>
> https://mail.gna.org/public/xenomai-help/2008-05/msg00294.html
>
> I have tried to compile the user-space Xenomai libraries with the m32
> option, but I only get -ENOSYS error which implies that the function is
> not implemented. Is there any plan to implement 32 bit wrappers for a 64
> bit system? Do I have to install a 32 bit kernel in order to use Xenomai
> with Labview? Does anyone have a suggestion on how to solve the problem?
>
> I the message the linked to above, it was suggested that I could
> implement the wrappers. Does anyone know about how much work this would
> be? If it isn't a lot of work, maybe someone could point me to where in
> the code I should start looking.
>
> I am also thinking of making a 64 bit deamon that a 32 bit library can
> communicate with. I am not sure if this will work, because I do not know
> if there are IPC (InterProcess Communication) that can handle both 32
> and 64 bit on Linux?
No Xenomai service is currently implemented in 32 bits mode. It is a ton
of work to do so, because you need to write wrappers for all the system
calls, and there are probably a handful of hundreds of them (a grep | wc
gives 433).
So, currently, it seems easier to use either a complete 64 bits or to a
complete 32 bits system, not a mix of both.
--
Gilles.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Xenomai-help] 32 bits libraries for x86_64 architecture
2011-07-11 11:19 ` Gilles Chanteperdrix
@ 2011-07-11 12:55 ` Kim Mathiassen
2011-07-11 13:19 ` Gilles Chanteperdrix
0 siblings, 1 reply; 5+ messages in thread
From: Kim Mathiassen @ 2011-07-11 12:55 UTC (permalink / raw)
To: xenomai
On 07/11/2011 01:19 PM, Gilles Chanteperdrix wrote:
> On 07/07/2011 11:40 AM, Kim Mathiassen wrote:
>> Hi
>>
>> I am doing a project where I am going to use Labview for linux.
>> Unfortunately Labview only have a 32-bit version and I have a 64 bit
>> system. I want to use Xenomai with Labview for DAQ, and therefor I need
>> 32 bits libraries that Labview can call. I read a message in the
>> mailing-list which where of a similar character:
>>
>> https://mail.gna.org/public/xenomai-help/2008-05/msg00294.html
>>
>> I have tried to compile the user-space Xenomai libraries with the m32
>> option, but I only get -ENOSYS error which implies that the function is
>> not implemented. Is there any plan to implement 32 bit wrappers for a 64
>> bit system? Do I have to install a 32 bit kernel in order to use Xenomai
>> with Labview? Does anyone have a suggestion on how to solve the problem?
>>
>> I the message the linked to above, it was suggested that I could
>> implement the wrappers. Does anyone know about how much work this would
>> be? If it isn't a lot of work, maybe someone could point me to where in
>> the code I should start looking.
>>
>> I am also thinking of making a 64 bit deamon that a 32 bit library can
>> communicate with. I am not sure if this will work, because I do not know
>> if there are IPC (InterProcess Communication) that can handle both 32
>> and 64 bit on Linux?
> No Xenomai service is currently implemented in 32 bits mode. It is a ton
> of work to do so, because you need to write wrappers for all the system
> calls, and there are probably a handful of hundreds of them (a grep | wc
> gives 433).
>
> So, currently, it seems easier to use either a complete 64 bits or to a
> complete 32 bits system, not a mix of both.
>
Thanks for the reply. I have been implementing the deamon approach. It
seems to be working. Unix sockets can communicate between 32 and 64 bit
programs.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Xenomai-help] 32 bits libraries for x86_64 architecture
2011-07-11 12:55 ` Kim Mathiassen
@ 2011-07-11 13:19 ` Gilles Chanteperdrix
2011-07-12 7:24 ` Kim Mathiassen
0 siblings, 1 reply; 5+ messages in thread
From: Gilles Chanteperdrix @ 2011-07-11 13:19 UTC (permalink / raw)
To: Kim Mathiassen; +Cc: xenomai
On 07/11/2011 02:55 PM, Kim Mathiassen wrote:
> On 07/11/2011 01:19 PM, Gilles Chanteperdrix wrote:
>> So, currently, it seems easier to use either a complete 64 bits or to a
>> complete 32 bits system, not a mix of both.
>>
> Thanks for the reply. I have been implementing the deamon approach. It
> seems to be working. Unix sockets can communicate between 32 and 64 bit
> programs.
Yes, but make you switch to secondary mode. IOW, you no-longer are
real-time.
--
Gilles.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Xenomai-help] 32 bits libraries for x86_64 architecture
2011-07-11 13:19 ` Gilles Chanteperdrix
@ 2011-07-12 7:24 ` Kim Mathiassen
0 siblings, 0 replies; 5+ messages in thread
From: Kim Mathiassen @ 2011-07-12 7:24 UTC (permalink / raw)
To: xenomai
On 07/11/2011 03:19 PM, Gilles Chanteperdrix wrote:
> On 07/11/2011 02:55 PM, Kim Mathiassen wrote:
>> On 07/11/2011 01:19 PM, Gilles Chanteperdrix wrote:
>>> So, currently, it seems easier to use either a complete 64 bits or to a
>>> complete 32 bits system, not a mix of both.
>>>
>> Thanks for the reply. I have been implementing the deamon approach. It
>> seems to be working. Unix sockets can communicate between 32 and 64 bit
>> programs.
> Yes, but make you switch to secondary mode. IOW, you no-longer are
> real-time.
>
Only the thread communicating with Unix sockets will go to secondary
mode? I guess there is no way of getting the labview threads to Xenomai
threads? If there is no way of getting the labview threads to real-time
threads, at least some of the code will run in real-time mode. I will
run Labview on a dedicated core and with the highest priority to
hopefully cope with the real-time demands. Of course there is no guaranties.
Kim
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-07-12 7:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-07 9:40 [Xenomai-help] 32 bits libraries for x86_64 architecture Kim Mathiassen
2011-07-11 11:19 ` Gilles Chanteperdrix
2011-07-11 12:55 ` Kim Mathiassen
2011-07-11 13:19 ` Gilles Chanteperdrix
2011-07-12 7:24 ` Kim Mathiassen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.