ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: osx-64-binaries/minimals
Date: Thu, 19 Nov 2009 09:43:32 +0100	[thread overview]
Message-ID: <6faad9f00911190043k6a3c047dh2bfddba61b1ddaef@mail.gmail.com> (raw)
In-Reply-To: <4B04ECE9.3060201@elvenkind.com>

On Thu, Nov 19, 2009 at 07:59, Taco Hoekwater wrote:
>
> Mojca Miklavec wrote:
>>
>> Hans, Taco - does LuaTeX itself know if it's 64-bit or not?
>
> Only internally at the moment, but I could add a variable
> in the os library (after I figure out which of the sizeof()'s
> is the best one to use).

When outside the binary one can run "file" for example:

> file osx-intel/current/luatex/beta-0.45.0/luatex
osx-intel/current/luatex/beta-0.45.0/luatex: Mach-O executable i386

> file osx-ppc/current/luatex/beta-0.45.0/luatex
osx-ppc/current/luatex/beta-0.45.0/luatex: Mach-O executable ppc

> file osx-64/current/luatex/beta-0.45.0/luatex
osx-64/current/luatex/beta-0.45.0/luatex: Mach-O 64-bit executable x86_64

> file linux/current/luatex/beta-0.44.0/luatex
linux/current/luatex/beta-0.44.0/luatex: ELF 32-bit LSB executable,
Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked
(uses shared libs), stripped

> file linux-64/current/luatex/beta-0.44.0/luatex
linux-64/current/luatex/beta-0.44.0/luatex: ELF 64-bit LSB executable,
x86-64, version 1 (SYSV), for GNU/Linux 2.6.4, dynamically linked
(uses shared libs), stripped

But I have no idea if there is some simple way to hardcode the target
architecture into LuaTeX itself. (Apart from compiling "hello world",
running "file" on it, doing a platform-dependent regular expression
and passing that value to luatex at compile time. But that would be
really really ugly.)

gcc could be as kind as returning the architecture on request.

Yes, I know, I should be dreaming at night, not in the middle of day.
    Mojca
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2009-11-19  8:43 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.448.1258320461.22155.ntg-context@ntg.nl>
2009-11-15 22:15 ` Indent missed after \placefigure[inner] Vyatcheslav Yatskovsky
2009-11-16 10:13   ` Wolfgang Schuster
2009-11-16 10:33     ` osx-64-binaries/minimals Andreas Harder
2009-11-17 15:05       ` osx-64-binaries/minimals Mojca Miklavec
2009-11-17 15:44         ` osx-64-binaries/minimals Hans Hagen
2009-11-17 16:16           ` osx-64-binaries/minimals Taco Hoekwater
2009-11-17 16:33             ` osx-64-binaries/minimals Mojca Miklavec
2009-11-18  6:31               ` osx-64-binaries/minimals Taco Hoekwater
2009-11-18 12:49       ` osx-64-binaries/minimals Mojca Miklavec
2009-11-19  1:18         ` osx-64-binaries/minimals Mojca Miklavec
2009-11-19  6:59           ` osx-64-binaries/minimals Taco Hoekwater
2009-11-19  8:43             ` Mojca Miklavec [this message]
2009-11-19  8:53               ` osx-64-binaries/minimals Arthur Reutenauer
2009-11-19 18:19             ` osx-64-binaries/minimals Martin Schröder
2009-11-20  7:09               ` osx-64-binaries/minimals Taco Hoekwater
2009-11-15 22:19 ` Indent missed after \placefigure[inner] Vyatcheslav Yatskovsky

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=6faad9f00911190043k6a3c047dh2bfddba61b1ddaef@mail.gmail.com \
    --to=mojca.miklavec.lists@gmail.com \
    --cc=ntg-context@ntg.nl \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).