All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Kim Mathiassen <kimmat@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] 32 bits libraries for x86_64 architecture
Date: Mon, 11 Jul 2011 13:19:01 +0200	[thread overview]
Message-ID: <4E1ADC25.5000800@domain.hid> (raw)
In-Reply-To: <4E157F1C.9060606@domain.hid>

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.


  reply	other threads:[~2011-07-11 11:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-07  9:40 [Xenomai-help] 32 bits libraries for x86_64 architecture Kim Mathiassen
2011-07-11 11:19 ` Gilles Chanteperdrix [this message]
2011-07-11 12:55   ` Kim Mathiassen
2011-07-11 13:19     ` Gilles Chanteperdrix
2011-07-12  7:24       ` Kim Mathiassen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E1ADC25.5000800@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=kimmat@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.