From: mert0407 AT sable DOT ox DOT ac DOT uk (George Foot) Newsgroups: comp.os.msdos.djgpp Subject: Re: Some comments and questions Date: 24 Oct 1997 02:08:09 GMT Organization: Oxford University, England Lines: 70 Message-ID: <62ovu9$d9v$1@news.ox.ac.uk> References: <199710220553 DOT SAA21269 AT atlantis DOT actrix DOT gen DOT nz> NNTP-Posting-Host: sable.ox.ac.uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Wed, 22 Oct 1997 05:53:00 GMT in comp.os.msdos.djgpp Kris Heidenstrom (kheidens AT actrix DOT gen DOT nz) wrote: Author of the PC Timing FAQ? ;) [big snips throughout] : Debugging with gdb was an experience! I'm used to Borland's Turbo : Debugger and found gdb very awkward by comparison. In fact I found : it quite painful to use. It has most of the functionality of Turbo : Debugger (and some nice extra features) and seems to be powerful : enough, but the user interface is nasty (IMO). At least it's a : good incentive not to write buggy programs :-) You might like to look at RHIDE (if you're still searching for an editor) and RHGDB (a debugger). RHIDE is designed to offer much of the functionality of Borland's IDE, and more, using a port of Borland's own TurboVision library (so it looks pretty similar too). RHGDB, similarly, is a TurboVision-using debugger, based upon gdb (I'm not fully sure of the details though). RHGDB is included in RHIDE anyway, so if you use RHIDE you don't need RHGDB. : Now for my questions. : 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 :-) DJASM isn't really meant for the end-user's use; it's an Intel-format assembler which is used only to generate the real-mode stub code, which bootstraps all your protected mode programs (and of course all the djgpp tools). I don't think it is documented anywhere ;). : 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. I'm not aware of any of the above; however, an assembler called NASM can assemble Intel-syntax code into .o object files that djgpp's linker can link in. This only works for entire assembly modules; not inline assembler AFAIK. : 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. Hmm... I don't know of any such documentation, but you could always ask djgpp itself: #include #define psize(a,b) printf ("Size of %s: %d\n",a,sizeof(b)); int main(void) { psize ("char",char); /* 1 */ psize ("short",short); /* 2 */ psize ("int",int); /* 4 */ psize ("long",long); /* 4 */ psize ("long long",long long); /* 8 */ psize ("float",float); /* can't remember */ psize ("double",double); /* can't remember */ psize ("void *",void *); /* 4 */ return 0; } Hope this helps. -- Regards, george DOT foot AT merton DOT oxford DOT ac DOT uk