comparison portasm/README.txt @ 0:3e629dc19168

initial from svn dyncall-1745
author Daniel Adler
date Thu, 19 Mar 2015 22:24:28 +0100
parents
children ab2d78e48ca2
comparison
equal deleted inserted replaced
-1:000000000000 0:3e629dc19168
1 portasm - a toolkit for writing portable generic assembler sources
2 ------------------------------------------------------------------
3
4 Copyright (C) 2011 Daniel Adler <dadler@uni-goettingen.de>.
5 Licensed under BSD two-clause license.
6
7
8 Requirements
9 ------------
10 - C Preprocessor
11
12
13 Supported Architectures and Tool-chains:
14 ----------------------------------------
15
16 - x86: gas, apple as, masm
17 - x64: gas, apple as, masm
18 - ppc: gas, apple as
19 - arm: gas, apple as
20
21
22 Usage:
23 ------
24
25 Implement assembler sources in *.S files which use C preprocessor.
26 #include portasm-<ARCH>.S at front
27
28 In order to generate MASM files for X86 and X64, run
29 'gen-masm.sh <name>' script which reads <name>.S and outputs <name>.masm file.
30
31
32 Common Macros:
33 --------------
34
35 BEGIN_ASM
36 END_ASM
37 BEGIN_PROC(name)
38 END_PROC(name)
39 GLOBAL(name)
40 HEX(value)
41
42