| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | C Compiler |
IB> There are a few things needed to complete the conversion, mainly the
IB> signature. The easiest way to do this is to generate some prototype C
IB> code then use the "Compile to AS" option to get the
needed code e.g.
IB> void delall(char * direct)
IB> {
IB> ...
IB> }
IB> produces the following:-
IB> .globl small_data
IB> .globl small_code
IB> ...
IB> .psect _TEXT,class=CODE
IB> .globl _delall
IB> .signat _delall,4152
IB> _delall:
IB> ...
Ah, a SENSIBLE assember!
BTW, this is the basic format/syntax of assembler used by any of the UNIX
variants available for the PC since the Microsoft/SCO Xenix days of 1986.
The GNU assembler uses much the same sort of thing. The syntax - but of
course not the instruction set - is derived from assembler for the DEC PDP
series of processors on which UNIX was first developed.
The funny thing about it is that the more "modern" intel formats
are slowly devolving back to this syntax. The primary problem is that they
still get the left/right operands around the wrong way. :-)
BTW, does this assember use opcode from,to as used by the PDP style
assembler or opcode to,from as used by the Intel ASM degenerates?
--- MaltEd/2 1.0.b6
* Origin: Unique Computing Pty Limited (3:632/348)SEEN-BY: 50/99 78/0 620/243 623/630 632/103 348 360 998 633/371 634/388 396 SEEN-BY: 635/301 502 503 506 544 639/252 711/401 409 410 413 430 808 809 932 SEEN-BY: 711/934 712/515 713/888 714/906 800/1 7877/2809 @PATH: 632/348 635/503 50/99 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.