Skip to content

Support ARM-based Mac as Host - #71

Open
QianNangong wants to merge 3 commits into
tkchia:gcc-6_3_0-ia16-tkchiafrom
QianNangong:apple-silicon-patch-1
Open

Support ARM-based Mac as Host#71
QianNangong wants to merge 3 commits into
tkchia:gcc-6_3_0-ia16-tkchiafrom
QianNangong:apple-silicon-patch-1

Conversation

@QianNangong

@QianNangong QianNangong commented Feb 25, 2021

Copy link
Copy Markdown

This pr backports some commits from https://github.com/iains/gcc-darwin-arm64.

Li Keqing and others added 3 commits February 25, 2021 15:30
* This make the `configure` script can detect the triple of ARM
  macOS correctly.
Newer versions of Darwin report pagesize 20 which means that we
need to adjust the aligment of the PCH area.

gcc/ChangeLog:

	* config/host-darwin.c: Align pch_address_space to 16384.
Backport from iains/gcc-darwin-arm64
Commit ID: 28781eaf7c9d1f5cc4de21848aaed6960f53f879
@QianNangong

QianNangong commented Feb 25, 2021

Copy link
Copy Markdown
Author

It seems that it's enough to build a toolchain targeting ia16-elf and compile some simple example program, but I'm not sure if it will work accurately as on other host system.

@QianNangong QianNangong changed the title [WIP] Support ARM-based Mac as Host Support ARM-based Mac as Host Feb 25, 2021
@tkchia

tkchia commented Feb 27, 2021

Copy link
Copy Markdown
Owner

Hello @EddaAkikusa,

Thank you. I am concerned, though, that the original patches themselves have not yet been added to mainline GCC.

I think I would want to look at the changes more closely first, and maybe also wait for the dust to settle (so to speak), before proceeding further.

In the meantime, if you need any help in stress-testing your patches, let me know. (I am currently using the build-ia16 setup to build GCC and run regression tests, though this is geared towards Ubuntu Linux.)

Thank you!

@QianNangong

Copy link
Copy Markdown
Author

Okay.

@tkchia
tkchia force-pushed the gcc-6_3_0-ia16-tkchia branch from 3791af1 to 172d90f Compare October 22, 2021 17:46
@tkchia
tkchia force-pushed the gcc-6_3_0-ia16-tkchia branch from f2c2cf6 to 9688ce3 Compare June 6, 2022 14:11
@asiekierka

Copy link
Copy Markdown

It seems that AArch64 Darwin support is now upstream, however the changes in host-darwin.c differ: the version in upstream GCC is should be more resilient/effective for a broader set of architectures.

@tkchia
tkchia force-pushed the gcc-6_3_0-ia16-tkchia branch from d5144bb to 586d4dc Compare December 23, 2022 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants