ARM Cortex-M Microcontroller startup files

Iain Buclaw via Digitalmars-d digitalmars-d at puremagic.com
Sun Apr 26 23:34:06 PDT 2015


On 27 April 2015 at 08:28, Iain Buclaw <ibuclaw at gdcproject.org> wrote:
> On 27 April 2015 at 07:22, Timo Sintonen via Digitalmars-d
> <digitalmars-d at puremagic.com> wrote:
>> On Monday, 27 April 2015 at 05:19:52 UTC, Timo Sintonen wrote:
>>
>> Oops, I forget to uncomment the m4 options. The correct version is
>>>
>>>
>>> And I replace the whole gcc/config/arm/t-arm-elf with this:
>>> MULTILIB_OPTIONS  += mcpu=cortex-m0/mcpu=cortex-m3/mcpu=cortex-m4
>>>  mfloat-abi=hard mfpu=fpv4-sp-d16
>>> MULTILIB_DIRNAMES += cortex-m0 cortex-m3 cortex-m4
>>> MULTILIB_REQUIRED += mcpu=cortex-m0
>>> MULTILIB_REQUIRED += mcpu=cortex-m3
>>> MULTILIB_REQUIRED += mcpu=cortex-m4 /mfloat-abi=hard  /mfpu=fpv4-sp-d16
>>> MULTILIB_EXTRA_OPTS += mthumb
>>>
>>>
>>
>
> Maybe you could instead create a new file under config/arm/t-mprofile,
> for use with --with-multilib-list=mprofile  (see patch below).
>
> See config/arm/t-aprofile for guidance, which looks to be tailored
> multilib support for the Cortex-A range of CPUs.
>

Also stumbled across:
https://github.com/prattmic/arm-cortex-m4-hardfloat-toolchain/blob/master/patches/gcc-multilib.patch


More information about the Digitalmars-d mailing list