Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.arch.embedded > #30444 > unrolled thread

Arm registers

Started byHul Tytus <ht@panix.com>
First post2021-04-16 19:30 +0000
Last post2021-04-18 14:00 +0000
Articles 4 on this page of 24 — 6 participants

Back to article view | Back to comp.arch.embedded


Contents

  Arm registers Hul Tytus <ht@panix.com> - 2021-04-16 19:30 +0000
    Re: Arm registers Richard Damon <Richard@Damon-Family.org> - 2021-04-16 16:20 -0400
      Re: Arm registers Hul Tytus <ht@panix.com> - 2021-04-16 22:12 +0000
        Re: Arm registers Richard Damon <Richard@Damon-Family.org> - 2021-04-16 19:41 -0400
          Re: Arm registers Hul Tytus <ht@panix.com> - 2021-04-17 15:43 +0000
            Re: Arm registers Theo <theom+news@chiark.greenend.org.uk> - 2021-04-17 21:45 +0100
              Re: Arm registers Hul Tytus <ht@panix.com> - 2021-04-18 13:57 +0000
                Re: Arm registers Theo <theom+news@chiark.greenend.org.uk> - 2021-04-18 16:31 +0100
                  Re: Arm registers Hul Tytus <ht@panix.com> - 2021-04-19 21:22 +0000
    Re: Arm registers David Brown <david.brown@hesbynett.no> - 2021-04-17 12:43 +0200
      Re: Arm registers Hul Tytus <ht@panix.com> - 2021-04-17 15:53 +0000
        Re: Arm registers David Brown <david.brown@hesbynett.no> - 2021-04-17 18:50 +0200
          Re: Arm registers Hul Tytus <ht@panix.com> - 2021-04-17 19:30 +0000
            Re: Arm registers David Brown <david.brown@hesbynett.no> - 2021-04-18 15:02 +0200
        Re: Arm registers Richard Damon <Richard@Damon-Family.org> - 2021-04-17 13:16 -0400
          Re: Arm registers Hul Tytus <ht@panix.com> - 2021-04-17 19:23 +0000
          Re: Arm registers Theo <theom+news@chiark.greenend.org.uk> - 2021-04-17 21:42 +0100
        Re: Arm registers Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2021-04-17 21:09 +0300
          Re: Arm registers Hul Tytus <ht@panix.com> - 2021-04-17 19:38 +0000
            Re: Arm registers Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2021-04-18 11:44 +0300
              Re: Arm registers Hul Tytus <ht@panix.com> - 2021-04-18 14:07 +0000
            Re: Arm registers David Brown <david.brown@hesbynett.no> - 2021-04-18 15:10 +0200
        Re: Arm registers antispam@math.uni.wroc.pl - 2021-04-17 21:05 +0000
          Re: Arm registers Hul Tytus <ht@panix.com> - 2021-04-18 14:00 +0000

Page 2 of 2 — ← Prev page 1 [2]


#30492

FromHul Tytus <ht@panix.com>
Date2021-04-18 14:07 +0000
Message-ID<s5heec$q5c$3@reader1.panix.com>
In reply to#30484
Apparantly you read a different version of the GNU copyright
than I did but I didn't read it all. It does vary with
time.

Hul

Tauno Voipio <tauno.voipio@notused.fi.invalid> wrote:
> Your code is just data passed through the tools, the GNU
> copyright does not limit it.

> You'll be safe as long as you are not going to modify the
> tools. Even then you have to publish the modifications, not
> the code processed using the tools.

> For libraries, there is the GNU LGPL coversin such cases
> and permitting to use them.

> -- 

> -TV


> On 17.4.2021 22:38 PM, Hul Tytus wrote:
> > Tauno - just the GNU copyright provides reason for not using it.
> > I would expect anyone using it, or considering same, to a major extent, whether
> > government sponsored or private, would look closely.
> > 
> > Hul
> > 
> > Tauno Voipio <tauno.voipio@notused.fi.invalid> wrote:
> >> On 17.4.21 18.53, Hul Tytus wrote:
> >>> David - I'm in the process of putting together an assembler for the Arm
> >>> 32 bit processors. There is no all-knowing compiler envolved so I need
> >>> to know what machine codes are valid for a given processor. Any suggestions
> >>> on where that information can be found?
> > 
> > 
> >> Why on earth?
> > 
> >> What is wrong with the GNU arm-none-eabi-as?
> > 
> >> The arm-none-eabi-gcc has switches for different processor
> >> architectures.
> > 
> >> ARM has an instruction reference card for Thumb2, with
> >> different processors marked on the card.
> > 
> >> -- 
> > 
> >> -TV

[toc] | [prev] | [next] | [standalone]


#30489

FromDavid Brown <david.brown@hesbynett.no>
Date2021-04-18 15:10 +0200
Message-ID<s5hb4e$599$1@dont-email.me>
In reply to#30475
(Please don't top-post - it is making a serious mess of this thread.
I've fixed it here.)

On 17/04/2021 21:38, Hul Tytus wrote:
> 
> Tauno Voipio <tauno.voipio@notused.fi.invalid> wrote:
>> On 17.4.21 18.53, Hul Tytus wrote:
>>> David - I'm in the process of putting together an assembler for the Arm
>>> 32 bit processors. There is no all-knowing compiler envolved so I need
>>> to know what machine codes are valid for a given processor. Any suggestions
>>> on where that information can be found?
> 
> 
>> Why on earth?
> 
>> What is wrong with the GNU arm-none-eabi-as?
> 
>> The arm-none-eabi-gcc has switches for different processor
>> architectures.
> 
>> ARM has an instruction reference card for Thumb2, with
>> different processors marked on the card.
> 
> Tauno - just the GNU copyright provides reason for not using it.
> I would expect anyone using it, or considering same, to a major
extent, whether
> government sponsored or private, would look closely.
>
> Hul

The copyright ownership has no particular relevance here, it is the
license that is important.  And the license lets you use the tools
completely freely for any purpose - commercial, governmental, private,
or whatever.  It only places restrictions on what you can do with the
source code to the assembler - you can modify it that source as much as
you like, but if you give people a copy of a binary version of the
assembler, you need to give them a copy of the modified source too.  The
GPL does not affect your ARM code in any way.

The GNU toolchain - assembler, linker, compiler collection - are far and
away the most used development toolchain in the world, and cover the
widest range of targets.  If the copyright or license caused some
restriction in how they could be used or who could use them, someone
would have noticed by now.

And if you want to be able to take the source code for an ARM assembler,
modify it, and pass on (or sell) the binaries while keeping your changes
secret, then you could look to the LLVM project which also includes an
assembler and supports ARM as a target, and is all under a BSD/MIT style
license.

[toc] | [prev] | [next] | [standalone]


#30478

Fromantispam@math.uni.wroc.pl
Date2021-04-17 21:05 +0000
Message-ID<s5fijf$a96$1@z-news.wcss.wroc.pl>
In reply to#30466
Hul Tytus <ht@panix.com> wrote:
> David - I'm in the process of putting together an assembler for the Arm
> 32 bit processors. There is no all-knowing compiler envolved so I need
> to know what machine codes are valid for a given processor. Any suggestions
> on where that information can be found?

If you think about microcontrollers, then most relevant probably
is ARM v8-M Architecture Reference Manual which I found under
file name DDI0553A_e_armv8m_arm.pdf

It contains list of instructions with their encodings. v8 is resonably
recent (maybe newest) version of ARM architecture.  Since ARM is
mostly adding instructions it probably covers all intructions that
you want to support.  ARM defined several subsets, for example
Cortex -M3 Devices Generic User Guide file name
DUI0552A_cortex_m3_dgug.pdf describes Cortex M3, in particular
provides list of valid instructions.

Collectiong information that you need looks like large and tedious
job: you need to check instruction descriptions to know if
instruction is valid for given subset (given mnemonic may be
valid, but specific combination of argument may be invalid).
I am not aware any documents containing needed data is
syntetic form.  You may try a shortcut: generate "program"
that contains all varianants of all instructions and look
which one GNU assembler accepts for given subset (model).
Of course, in this way you will repeat any bugs in tables
in GNU assembler.  OTOH tables in GNU assembler are probably
debugged at least as well as ARM documents...

-- 
                              Waldek Hebisch

[toc] | [prev] | [next] | [standalone]


#30491

FromHul Tytus <ht@panix.com>
Date2021-04-18 14:00 +0000
Message-ID<s5he17$q5c$2@reader1.panix.com>
In reply to#30478
Maybe I should take a look at the version 8 text. Thanks

Hul

antispam@math.uni.wroc.pl wrote:
> Hul Tytus <ht@panix.com> wrote:
> > David - I'm in the process of putting together an assembler for the Arm
> > 32 bit processors. There is no all-knowing compiler envolved so I need
> > to know what machine codes are valid for a given processor. Any suggestions
> > on where that information can be found?

> If you think about microcontrollers, then most relevant probably
> is ARM v8-M Architecture Reference Manual which I found under
> file name DDI0553A_e_armv8m_arm.pdf

> It contains list of instructions with their encodings. v8 is resonably
> recent (maybe newest) version of ARM architecture.  Since ARM is
> mostly adding instructions it probably covers all intructions that
> you want to support.  ARM defined several subsets, for example
> Cortex -M3 Devices Generic User Guide file name
> DUI0552A_cortex_m3_dgug.pdf describes Cortex M3, in particular
> provides list of valid instructions.

> Collectiong information that you need looks like large and tedious
> job: you need to check instruction descriptions to know if
> instruction is valid for given subset (given mnemonic may be
> valid, but specific combination of argument may be invalid).
> I am not aware any documents containing needed data is
> syntetic form.  You may try a shortcut: generate "program"
> that contains all varianants of all instructions and look
> which one GNU assembler accepts for given subset (model).
> Of course, in this way you will repeat any bugs in tables
> in GNU assembler.  OTOH tables in GNU assembler are probably
> debugged at least as well as ARM documents...

> -- 
>                               Waldek Hebisch

[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

Back to top | Article view | comp.arch.embedded


csiph-web