🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.asm
Article #1793

Kompilacja 32-bitowa na systemie 64-bitowy

#1793
From: Karql
Date: Tue, 22 Apr 2008 23:27
18 lines
1678 bytes
Witam.

Mam takie pytanie, czy jest jakaś możliwość skompilowania kodu 32-
bitowego na systemie 64-bitowym, bo nie sądzę, żeby trzeba było do
tego robić 32 bitowego chroota.

karql@mhrok ~/code/asm $ nasm -f elf jakiskod.asm
karql@mhrok ~/code/asm $ ld jakiskod.o
ld: i386 architecture of input file `jakiskod.o' is incompatible with
i386:x86-64 output

Jeśli kompiluje -f elf64 to jest ok, ale mam potrzebę właśnie
skompilować na 32 bity. Może jest jakaś opcja do ld której nie mogę
znaleźć.

Z góry dziękuję za pomoc.

Pozdrawiam.
Technical Details
Message-ID: <f3412042-d2d8-4276-bd48-93f49540635d@d1g2000hsg.googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!newsfeed.silweb.pl!newsfeed.pionier.net.pl!news.glorb.com!postnews.google.com!d1g2000hsg.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!newsfeed.silweb.pl!newsfeed.pionier.net.pl!news.glorb.com!postnews.google.com!d1g2000hsg.googlegroups.com!not-for-mail
From: Karql <karql.pl@gmail.com>
Newsgroups: pl.comp.lang.asm
Subject: Kompilacja 32-bitowa na systemie 64-bitowy
Date: Tue, 22 Apr 2008 16:27:54 -0700 (PDT)
Organization: http://groups.google.com
Lines: 19
Message-ID: <f3412042-d2d8-4276-bd48-93f49540635d@d1g2000hsg.googlegroups.com>
NNTP-Posting-Host: 195.150.77.247
Mime-Version: 1.0
X-Trace: posting.google.com 1208906875 17511 127.0.0.1 (22 Apr 2008 23:27:55 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 22 Apr 2008 23:27:55 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: d1g2000hsg.googlegroups.com; posting-host=195.150.77.247;  posting-account=UwkalAoAAAC0Lkqs3qRxRDiSYGTTAKsN
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; pl; rv:1.8.1.13)  Gecko/20080402 Firefox/2.0.0.13,gzip(gfe),gzip(gfe)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit