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


Groups > comp.lang.forth > #60293

Re: Gforth assembler examples for AMD64

From anton@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups comp.lang.forth
Subject Re: Gforth assembler examples for AMD64
Date 2017-06-04 15:25 +0000
Organization Institut fuer Computersprachen, Technische Universitaet Wien
Message-ID <2017Jun4.172529@mips.complang.tuwien.ac.at> (permalink)
References <7173b951-3d0f-4dd4-b86e-4fd28fbcdde1@googlegroups.com>

Show all headers | View raw


krishna.myneni@ccreweb.org writes:
>Beyond the one example of assembly language programming in gforth, for AMD64, in the user's manual, are there some other abi-code examples one can use to learn this assembler?

The assembler syntax is a variant of Bernd Paysan's 386 assembler
syntax, so look in the section on that for a general feeing.  A source
of examples for the assembler syntax is arch/amd64/testasm.fs.  For
ABI-CODE background, there is the paper

<http://www.complang.tuwien.ac.at/anton/euroforth/ef10/papers/ertl.pdf>

but it uses Intel syntax for the assembler (which does not work with
Gforth), because that is likely to be better known to the reader than
Bernd Paysan's syntax.

Finally, for using ABI-CODE, you may want to look at the ABI of your
platform.  For AMD64, this unfortunately varies between Windows and
the rest of the world.

- anton
-- 
M. Anton Ertl  http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
     New standard: http://www.forth200x.org/forth200x.html
   EuroForth 2017: http://www.euroforth.org/ef17/

Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Gforth assembler examples for AMD64 krishna.myneni@ccreweb.org - 2017-06-04 06:29 -0700
  Re: Gforth assembler examples for AMD64 anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-06-04 15:25 +0000
    Re: Gforth assembler examples for AMD64 krishna.myneni@ccreweb.org - 2017-06-04 09:31 -0700
      Re: Gforth assembler examples for AMD64 anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-06-04 16:46 +0000
        Re: Gforth assembler examples for AMD64 krishna.myneni@ccreweb.org - 2017-06-04 16:13 -0700
          Re: Gforth assembler examples for AMD64 krishna.myneni@ccreweb.org - 2017-06-04 19:38 -0700
            Re: Gforth assembler examples for AMD64 Bernd Paysan <bernd@net2o.de> - 2017-06-07 01:00 +0200
              Re: Gforth assembler examples for AMD64 krishna.myneni@ccreweb.org - 2017-06-06 19:05 -0700
              Re: Gforth assembler examples for AMD64 krishna.myneni@ccreweb.org - 2017-06-06 19:38 -0700

csiph-web