From: Charles Forsyth <charles.forsyth@gmail.com>
To: 9fans <9fans@9fans.net>
Subject: Re: [9fans] Arm Thumb compiler for Cortex-M
Date: Sat, 7 Nov 2020 15:03:24 +0000 [thread overview]
Message-ID: <CAOw7k5iNY_6B=m=5GpJPn9XmLSRAC_-sRDY7V=VbjwWqY5z-mQ@mail.gmail.com> (raw)
In-Reply-To: <CAG3JMta+uAEE8-0wN+SBTgQ87s2dAz=926A5e1z3wfcs2=zd-A@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2676 bytes --]
A slight correction (I made it earlier but didn't highlight it): 5a is also
used for Thumb code, as "5a -t" to restrict the input to thumb
constructions and tag the output as Thumb code (using .t files instead of
.5)
The thumb mkfile sets AS=5a -t
Since the Thumb-2 changes aren't supported, and it's the original Thumb, I
think that makes the supported architecture Armv6-M in current
documentation terms.
It looks to me as though it would work on Cortex M0, but I think the thumb
mode was only ever used by us on ARM's little Armv7-t Evaluator board,
which I can't even find documented now.
Normally even that board ran in (normal) ARM32 mode. The Thumb work on it
was just a stepping stone for using Thumb mode on a proprietary 3rd party
ARM implementation, although even there it was probably experimental.
Inferno can run without an MMU. Even given an MMU it sets a fairly flat map
across physical memory and the MMU functionality is mainly used to map
devices.
The os/ks32 directory is a guide to squashing the system down to fit modest
if not tiny memory (again, in ARM32 mode).
On Sat, Nov 7, 2020 at 2:24 PM Thaddeus Woskowiak <tswoskowiak@gmail.com>
wrote:
> On Thu, Nov 5, 2020 at 7:12 PM Charles Forsyth
> <charles.forsyth@gmail.com> wrote:
> >
> > There was a 5[ac] variant for Inferno (ta, tc) that produced Thumb code,
> and 5l could link Thumb and ARM32 code.
> > That wasn't extended once Thumb-2 was issued, since it was different
> enough to require a fair amount of work and we had no immediate application
> on the Cortex.
> >
> >
> > On Thu, Nov 5, 2020 at 11:38 PM Thaddeus Woskowiak <
> tswoskowiak@gmail.com> wrote:
> >>
> >> I would like to know if anyone is working on or exists an Arm Thumb
> >> compiler so one could use plan 9 to program Arm Cortex M0/3/4/7
> >> microcontrollers directly. I know of Charles Forsyth's xc AVR compiler
> >> which is also interesting. Though I have yet to try it out.
> >>
> >> -taw
> >
> > 9fans / 9fans / see discussions + participants + delivery options
> Permalink
>
> Charles, Thank you for the information. So Thumb compiling and
> assembly is handled by tc and ta respectively while 5l can handle
> linking both thumb code and arm 32.
>
> I guess my next question is: does this mean Inferno can run on certain
> Cortex-M micros since it can run MMU-less? (provided enough memory of
> course) And has this been done before?
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Tc22ac8ae61456f10-M17cdefbb28d2693788d7a348
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
[-- Attachment #2: Type: text/html, Size: 4230 bytes --]
next prev parent reply other threads:[~2020-11-07 15:03 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-05 23:36 Thaddeus Woskowiak
2020-11-06 0:10 ` [9fans] " Charles Forsyth
2020-11-06 0:27 ` Don A. Bailey
2020-11-06 0:46 ` Charles Forsyth
2020-11-06 0:47 ` Charles Forsyth
2020-11-06 0:49 ` Don A. Bailey
2020-11-06 0:58 ` Charles Forsyth
2020-11-06 1:16 ` Don A. Bailey
2020-11-07 14:22 ` Thaddeus Woskowiak
2020-11-07 15:03 ` Charles Forsyth [this message]
2020-11-07 21:22 ` Anthony Martin
2020-11-08 1:45 ` Charles Forsyth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAOw7k5iNY_6B=m=5GpJPn9XmLSRAC_-sRDY7V=VbjwWqY5z-mQ@mail.gmail.com' \
--to=charles.forsyth@gmail.com \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).