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


Groups > comp.arch.embedded > #27835

Re: [AVR] What assembler to use?

Path csiph.com!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From David Brown <david.brown@hesbynett.no>
Newsgroups comp.arch.embedded
Subject Re: [AVR] What assembler to use?
Date Mon, 18 Jun 2018 09:27:11 +0200
Organization A noiseless patient Spider
Lines 43
Message-ID <pg7msg$8d9$1@dont-email.me> (permalink)
References <pg2eoi$15t3$1@gioia.aioe.org> <pg65pr$4ml$2@dont-email.me> <pg7ln1$183f$1@gioia.aioe.org>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 7bit
Injection-Date Mon, 18 Jun 2018 07:27:12 -0000 (UTC)
Injection-Info reader02.eternal-september.org; posting-host="620229f69d90868a8b2e7da6c2f6a38e"; logging-data="8617"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX187W+6VUs6M+mTEgiG0f0waMopfFJf6h4M="
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
Cancel-Lock sha1:o21uHRF/9ufxpKKv1nnqNQyW6jY=
In-Reply-To <pg7ln1$183f$1@gioia.aioe.org>
Xref csiph.com comp.arch.embedded:27835

Show key headers only | View raw


On 18/06/18 09:07, Johann Klammer wrote:
> On 06/17/2018 07:29 PM, David Brown wrote:
>> 
>> Why do you want an alternative to gas?  It does pretty much
>> everything you could want from an assembler, as far as I know.
>> 
>> It is a long time since I have seen much need to write whole
>> programs in assembly - C (or even C++) is just so much more
>> efficient when your task is to write correct, readable,
>> maintainable code in a reasonable amount of development time.
>> 
> gas can't handle labels inside macros,

Yes it can.

Use ".altmacro" instead of ".macro", and you can make local names and
labels using "LOCAL name".  You can also use numeric local labels, or
\@ for a macro invocation number.

> and gcc had disappeared nops 
> the last time I wrote sthg timing critical.

gcc does not remove nops if you write them correctly - but it does
remove useless code if it is not marked appropriately.  Post some code,
and I can see if I can help.

Note that you don't need an assembler if you are mixing assembly and C -
inline assembly within the C code is usually sufficient for the few
snippets of code that you need in assembly.

> So I'm looking for
> alternatives now and then. (I just need a macro assembler)
> 
> At closer inspection it seems that avra only supports absolute
> addresses... so using it together with ld won't work... would have to
> rewrite parts of it for that...
> 
> The weird thing is that they have an example in their repository
> which consists of multiple asm files, but I can't tell how that would
> be compiled down to a single hex, as it basically outputs 1 hex for 1
> asm.
> 

Back to comp.arch.embedded | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[AVR] What assembler to use? Johann Klammer <klammerj@NOSPAM.a1.net> - 2018-06-16 09:37 +0200
  Re: [AVR] What assembler to use? David Brown <david.brown@hesbynett.no> - 2018-06-17 19:29 +0200
    Re: [AVR] What assembler to use? Johann Klammer <klammerj@NOSPAM.a1.net> - 2018-06-18 09:07 +0200
      Re: [AVR] What assembler to use? Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2018-06-18 10:18 +0300
        Re: [AVR] What assembler to use? David Brown <david.brown@hesbynett.no> - 2018-06-18 11:29 +0200
          Re: [AVR] What assembler to use? John Speth <johnspeth@yahoo.com> - 2018-06-18 09:39 -0700
            Re: [AVR] What assembler to use? David Brown <david.brown@hesbynett.no> - 2018-06-18 18:44 +0200
            Re: [AVR] What assembler to use? Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2018-06-18 22:48 +0300
        Re: [AVR] What assembler to use? Przemek Klosowski <przemek@tux.dot.org> - 2018-06-18 13:44 +0000
      Re: [AVR] What assembler to use? David Brown <david.brown@hesbynett.no> - 2018-06-18 09:27 +0200
        Re: [AVR] What assembler to use? Johann Klammer <klammerj@NOSPAM.a1.net> - 2018-06-18 10:40 +0200
          Re: [AVR] What assembler to use? David Brown <david.brown@hesbynett.no> - 2018-06-18 11:32 +0200
            Re: [AVR] What assembler to use? Grant Edwards <invalid@invalid.invalid> - 2018-06-18 14:11 +0000
      Re: [AVR] What assembler to use? Michael Bäuerle <michael.baeuerle@stz-e.de> - 2018-06-18 09:50 +0200
      Re: [AVR] What assembler to use? upsidedown@downunder.com - 2018-06-18 18:54 +0300

csiph-web