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


Groups > linux.debian.user > #198038

Re: Cross-Platform Assembly Language Compilers?

From Erik Christiansen <dvalin@internode.on.net>
Newsgroups linux.debian.user
Subject Re: Cross-Platform Assembly Language Compilers?
Date 2018-07-27 06:40 +0200
Message-ID <wg2HL-3Ab-1@gated-at.bofh.it> (permalink)
References <wfNz3-2CI-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 26.07.18 08:29, cyaiplexys wrote:
> I'd like to try a native compiler but also I would like to have something I
> could compile for Arduino (here we go again) and ARM and other CPUs as well.

$ apt-cache search avr | more
arduino - AVR development board IDE and built-in libraries
libavresample-dev - FFmpeg compatibility library for resampling -
development files
libavresample4 - FFmpeg compatibility library for resampling - runtime
files
gcc-avr - The GNU C compiler (cross compiler for avr)
avrdude-doc - documentation for avrdude
avr-libc - Standard C library for Atmel AVR development
gdb-avr - The GNU Debugger for avr
avrdude - software for programming Atmel AVR microcontrollers
binutils-avr - Binary utilities supporting Atmel's AVR targets

When you install gcc-avr, binutils-avr will also be installed, else
gcc-avr can't produce executables. You can use avr-as to assemble your
own assembler source files, but if you put your *.S files through
gcc-avr, then you can use the 'C' header files, with cpp doing the macro
mappings.

Unless arduinoing, you'll probably want to install "make", as it's very
handy for building a code suite. (Duno what arduino uses, but IDEs
usually try to appear to do something more than the elements of a CLI
build environment - aka "*nix is the IDE")

Once entangled in the peripherals (initialisation and utilisation) of
one CPU, you'll find enough to learn that hopping on to the next target
will not immediately appeal. However, what you learn of the GNU
toolchain on one target is equally applicable to the next. (E.g. ld,
objdump, nm, ar, gprof, gdb, readelf, ...)

Read the avrdude manpage and avrdude-doc for suitable programming
dongles, or just hop on ebay. Maybe buy a couple of arduinos while there,
leave the bootloader intact, and produce your code with the GNU toolchain
if arduino "sketches" seem too naff. They're easier, than a laptop, to
screw to a post if the project is a computerised birdfeeder. (And easier
to power out there.)

Arduino: # apt-get install arduino
         Then read all doco, and google.

X86: Similar to above.

Erik

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Cross-Platform Assembly Language Compilers? cyaiplexys <cyaiplexys@sitesplace.net> - 2018-07-26 14:30 +0200
  Re: Cross-Platform Assembly Language Compilers? deloptes <deloptes@gmail.com> - 2018-07-26 20:20 +0200
    Re: Cross-Platform Assembly Language Compilers? Joe <joe@jretrading.com> - 2018-07-26 22:00 +0200
  Re: Cross-Platform Assembly Language Compilers? Erik Christiansen <dvalin@internode.on.net> - 2018-07-27 06:40 +0200
    Re: Cross-Platform Assembly Language Compilers? cyaiplexys <cyaiplexys@sitesplace.net> - 2018-07-30 14:20 +0200
      Re: Cross-Platform Assembly Language Compilers? Erik Christiansen <dvalin@internode.on.net> - 2018-08-05 11:10 +0200
        Re: Cross-Platform Assembly Language Compilers? T BkRl <krusete@gmail.com> - 2018-08-05 11:30 +0200
        Re: Cross-Platform Assembly Language Compilers? Erik Christiansen <dvalin@internode.on.net> - 2018-08-05 13:40 +0200

csiph-web