Article View: es.comp.os.linux.programacion
Article #17229Re: Plataforma destino de un ejecutable (i386/i486/i586/i686)
From: rvm
Date: Thu, 03 Feb 2000 00:00
Date: Thu, 03 Feb 2000 00:00
101 lines
4029 bytes
4029 bytes
Manuel L�pez Moreno escribi� en mensaje ...
>El 'Subject' es un poco lioso ;)
>
>Voy al tajo:
>
>�ltimamente estoy compilando paquetes para Pentium y Pentium II.
>Las opciones del egcs son:
>Pentium: -mpentium ; gracias Drizzt ;)
>Pentium II: -O7 -mpentiumpro ; (no estoy seguro �?)
>
>Vale; pues una vez creado el ejecutable... �con qu� utilidad se puede
>averiguar la plataforma destino?
Ni idea.
>Por ejemplo, si hago
>
> $ strip ejecutable_para_pentium ; primero lo 'destripo' ;)
> $ file ejecutable_para_pentium
>
>me reporta:
>
>ejecutable_para_pentium: ELF 32-bit LSB executable, Intel 80386,
version 1,
>dynamically linked (uses shared libs), stripped
>
>Vamos, que el file parece que no ve tres en un burro.
>�Es por haberlo 'destripado'? ...no creo �?
No, si no lo destripas te dice lo mismo (excepto not stripped por
stripped).
>Resumiendo:
>1) �Qu� utilidad distingue la plataforma destino, -m<plataforma>, una
vez
>constru�do el ejecutable ELF?
>2) �Y si es un *.o?
>3) �D�nde c*�* hay _documentaci�n_ del egcs, aunque sea err�nea ;) ?
En la debian.. �d�nde si no?
rvmsoft:~$ dpkg -s egcs-docs
Package: egcs-docs
Status: install ok installed
Priority: optional
Section: devel
Installed-Size: 477
Maintainer: Debian EGCS maintainers <egcs@packages.debian.org>
Source: egcs (1.1.1-5)
Version: 2.91.60-5
Replaces: gcc (<= 2.7.2.3-4.3), egcs-docs-ss (<< 2.91.61)
Conflicts: gcc-docs (<= 2.7.2.3-4.8)
Description: Documentation for the egcs compilers (egcc, gobjc, g++).
Documentation for the egcs compilers in info format. This is provided
as a separate package, so that people who have GNU gcc installed can
choose whether or not they want the documentation that comes with that
compiler or the egcs documentation.
Por cierto, esto es lo que dice sobre las opciones para seleccionar la
arquitectura:
Intel 386 Options
-----------------
These `-m' options are defined for the i386 family of computers:
`-mcpu=CPU TYPE'
Assume the defaults for the machine type CPU TYPE when scheduling
instructions. The choices for CPU TYPE are: `i386', `i486',
`i586' (`pentium'), `pentium', `i686' (`pentiumpro') and
`pentiumpro'. While picking a specific CPU TYPE will schedule
things appropriately for that particular chip, the compiler will
not generate any code that does not run on the i386 without the
`-march=CPU TYPE' option being used.
`-march=CPU TYPE'
Generate instructions for the machine type CPU TYPE. The choices
for CPU TYPE are: `i386', `i486', `pentium', and `pentiumpro'.
Specifying `-march=CPU TYPE' implies `-mcpu=CPU TYPE'.
`-m386'
`-m486'
`-mpentium'
`-mpentiumpro'
Synonyms for -mcpu=i386, -mcpu=i486, -mcpu=pentium, and
-mcpu=pentiumpro respectively.
Si no he entendido mal con la opci�n mcpu se realizan algunas
optimizaciones, pero el ejecutable sigue funcionando en un 386 (�o no?,
la verdad es que no he entendido bien la frase).
--
Ricardo Villalba
rvm@XXlinuxfan.com (quita las XX)
http://members.xoom.com/rvmsoft
http://members.xoom.com/rvmsoft/linux
Linux registered user 90754
Technical Details
Message-ID:
<blom4.1027$pv3.8943@m2newsread.uni2.es>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<slrn895u85.h5.luname@mantium.luname.net>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,d80345d35c37adc0 X-Google-Attributes: gidf86c8,public From: "rvm" <rvm@XXlinuxfan.com> Subject: Re: Plataforma destino de un ejecutable (i386/i486/i586/i686) Date: 2000/02/03 Message-ID: <blom4.1027$pv3.8943@m2newsread.uni2.es> X-Deja-AN: 581302058 Content-Transfer-Encoding: 8bit References: <slrn895u85.h5.luname@mantium.luname.net> Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 X-Complaints-To: abuse@uni2.es X-Trace: m2newsread.uni2.es 949621191 62.36.40.7 (Fri, 04 Feb 2000 00:39:51 MET) Organization: Wanadoo WebNews - Visita http://www.wanadoo.es MIME-Version: 1.0 NNTP-Posting-Date: Fri, 04 Feb 2000 00:39:51 MET Newsgroups: es.comp.os.linux.programacion