32 bits libraries for x86_64 architecture
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
Quoted 21 lines · Kim Mathiassen
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
-ENOSYSerror 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.
Quoted 4 lines
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.
Signature · 1 line
Gilles.
Quoted 26 lines · Gilles Chanteperdrix
Quoted 21 lines · Kim Mathiassen
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
-ENOSYSerror 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.
Quoted 4 lines
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?
Quoted 8 lines
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.
Quoted 7 lines · Kim Mathiassen
Quoted 3 lines · Gilles Chanteperdrix
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.
Signature · 1 line
Gilles.
Quoted 11 lines · Gilles Chanteperdrix
Quoted 7 lines · Kim Mathiassen
Quoted 3 lines · Gilles Chanteperdrix
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