Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
19 crawler(s) on-line.
 148 guest(s) on-line.
 1 member(s) on-line.


 amigakit

You are an anonymous user.
Register Now!
 amigakit:  2 mins ago
 Rob:  17 mins ago
 kolla:  26 mins ago
 Tuxedo:  46 mins ago
 zipper:  51 mins ago
 OlafS25:  53 mins ago
 OneTimer1:  55 mins ago
 matthey:  1 hr 15 mins ago
 RobertB:  2 hrs 33 mins ago
 pavlor:  3 hrs 5 mins ago

/  Forum Index
   /  Amiga General Chat
      /  Amiga Inc. Loses U.S. Trademarks
Register To Post

PosterThread
michalsc 
Re: Cloanto acquire Amiga Inc Trademark
Posted on 22-Apr-2021 10:01:47
#1 ]
AROS Core Developer
Joined: 14-Jun-2005
Posts: 377
From: Germany

@ppcamiga1

Quote:
and it is compiled by gcc on ARM in wrog little endian format


because you have not told gcc that it should generate code for ARM in big endian mode. Have you done that on purpose? I have shown how binaries of ARM look like depending on the compile options used. Have you ignored that post because it proves you wrong? Have you expected that after opcode "setend be" the binary will flip itself to big endian??

I believe that your compiler produces little endian by default, because almost everyone uses arm in little endian mode. But you can switch the compiler to produce big endian binary any time with proper command line options. Alternatively you can make entire toolchain with big endian as default und little endian as option.

With proper compiler flags the binary is correct:

Quote:

➜ grpc /opt/cross/bin/arm-linux-gnueabihf-gcc -mbe8 -mbig-endian -Wl,--be8 -Wl,--format=elf32-bigarm -nostartfiles -nostdlib -Os -o test test.c
/opt/cross/lib/gcc/arm-linux-gnueabihf/8.2.0/../../../../arm-linux-gnueabihf/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000000010094
➜ grpc /opt/cross/bin/aarch64-linux-objcopy -O binary test test.bin
➜ grpc hexdump -C test.bin
00000000 04 30 9f e5 00 00 93 e5 1e ff 2f e1 00 02 00 a4 |.0......../.....|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00010010 de ad be ef |....|
00010014


Quote:
ARM is not real big endian cpu.


No, of course not. ARM is bi-endian CPU.

Quote:
It is useless for Amiga Os.


It is useful for AmigaOS when running in big endian mode.

Quote:
Old C/C++ Amiga code should work after just recompilation. Like on ppc.


With properly configured toolchain or with proper command line switches old C/C++ amiga code would work just after recompilation, like on ppc.

 Status: Offline
Profile     Report this post  
 Top | Parent

Replies
SubjectPosterDate
      Re: Cloanto acquire Amiga Inc Trademarkppcamiga122-Apr-2021 17:12:52
          Re: Cloanto acquire Amiga Inc Trademarkmichalsc22-Apr-2021 17:50:56
          Re: Cloanto acquire Amiga Inc TrademarkCheese22-Apr-2021 22:23:36



[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle