Re: 32-bit executables on aarch64?

Robert Clausecker <[email protected]>
Newsgroups gmane.os.freebsd.devel.arm
Message-ID <[email protected]>
Hi Thomas,

Unfortunately, there is no support for running armv7 executables
on arm64, though it would technically be possible to implement.
I myself would really like to have this sort of thing but I lack
the knowledge to have it.  Perhaps someone feels adventurous
enough to look into implementing support for this sort of thing.

For historical reasons, the i386 and amd64 ports of gcc and clang
have a largely shared code base and are essentially the same port.
So options -m32, -m64 can be used to switch between them.  The same
is not possible for armv7 and arm64 which are distinct ports with
little to no shared backend code.  Consider using -target armv7
instead.

Yours,
Robert Clausecker

Am Wed, Mar 31, 2021 at 12:55:59PM -0400 schrieb Thomas David Rivers:
> 
> I'm playing around with a (rather-old now) 13.0-pre-pre-pre release
> on Raspberry PI 4B.
> 
> I was naively thinking I could just use -m32 to create a 32-bit
> executable... but the LLVM there promptly told me it didn't recognize
> -m32.
> 
> I installed the gcc V9 port and it said the same thing.
> 
> This begged the question, is there no support of 32-bit ARM (armv7)
> executables in the aarch64 environment?
> 
> Just curious...
> 
>   - Thanks! -
>    - Dave Rivers -
> 
> 
> --
> [email protected]                        Work: (919) 676-0847
> Get your mainframe programming tools at http://www.dignus.com
> _______________________________________________
> [email protected] mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "[email protected]"

-- 
()  ascii ribbon campaign - for an 8-bit clean world 
/\  - against html email  - against proprietary attachments
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-arm
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.