Mail Archives: djgpp/1997/10/26/03:32:06
Kris Heidenstrom <kheidens AT actrix DOT gen DOT nz> wrote:
: Hi all,
: djasm - what is it, and where is it documented? It isn't mentioned
: anywhere in the help, or in the (otherwise very helpful) FAQ! Its
: name appears in the exe stub, though :-) Does it use Intel syntax?
: (he asked hopefully :-)
Hi, there. A quick answer is that djasm is _not_ DJGPP's assembler
intended for most users -- that's the GNU assembler (GAS), as.exe, which
you likely have in place if your files compile with GCC <grin>.
As I understand it, djasm was developed to build the 2K stub used by DJGPP
programs to get into protected mode, since GAS can only produce 32-bit
code and this requires some 16-bit programming. The reason for not
documenting djasm is that it isn't really intended for regular use.
: Intel syntax support - is there a program that converts Intel-syntax
: assembly to AT&T style? Has anyone tried to write one? Would there
: be any point in me trying to write one? Same questions for Intel-style
: disassembly for gdb.
You might enjoy fsdb, which does disassemble in Intel syntax, and you
should read Section 17.3 of the FAQ on some conversion options. While I
write my code in AT&T (GAS), a bit of practice reading Intel syntax
doesn't hurt <grin>.
: Language implementation info - the info file for the standard C library
: is good, but I can't find any language implementation reference - for
: example, something that will tell me what size a 'short' will be, etc.
One source of this information is /djgpp/include/limits.h. The main thing
to keep in mind, as you may already be aware, is that an int in DJGPP is
32 bits or 4 bytes.
: Best regards to you all,
: Kris.
Thank you very much for your feedback on DJGPP, and I hope that these very
unofficial suggestions might help.
Most appreciatively,
Margo Schulter
mschulter AT value DOT net
- Raw text -