Re: Why HLL and not C?



Andreas Kochenburger <akk@xxxxxxxxxx> wrote in part:
I meant HL Library, not HL Language. Within asm in C you
can call C functions easily, also from the C library.

Oh, you mean libc calls from asm. "Asm in C" usually
means `c` code with inline asm routines.

AFAIK assembler HLLs provide more or less the same
functionality as a C library.

Yes.

Paul Carter recommends in his PC Assembly Tutorial book to
go the C way. He seems convincing.

I agree.

I am only wondering wether there are strong arguments for
using assembler HLLs despite his advice.

It depends entirely on the functionality you require.
I like libc because it's easily available, well documented
and generally debugged. But sometimes, the FORTRAN libs
might be more useful :)

The advantage of an asm.lib would be complex access to
processor peculiarities (like MMX) that are not included
in libc. But in general, I tolerate libraries only for IO
and these are well covered by libc.

-- Robert


.



Relevant Pages

  • Re: Some ideas on ETH-oberon & Linux/C relationship
    ... does not support bidirectional buffering ... No provisions exist such that independent libraries can cooperate ... libc is history and should be taken as such. ... Oberon System which is also available for Linux. ...
    (comp.lang.oberon)
  • Re: Missing dependencies on shared libraries
    ... If you explicitly include libc on the command line ... libraries don't have libc recorded in them because we don't add -lc on ... Why isn't ldd showing the dependency? ... La prueba mas fehaciente de que existe vida inteligente en otros ...
    (freebsd-hackers)
  • Re: Missing dependencies on shared libraries
    ... On Sat, 15 Apr 2006, M. Warner Losh wrote: ... If you explicitly include libc on the command line ... look at linux shared libraries, you'll note they have dependencies ... libraries don't have libc recorded in them because we don't add -lc on ...
    (freebsd-hackers)
  • Regina GCI Failure [Fedora Core 2]
    ... functionality via Regina GCI on a Fedora 2 platform, ... This code works a treat on a Win32 platform. ... The near-same code on a Fedora ... I thought the problem would be related to the specification of 'libc' as the ...
    (comp.lang.rexx)
  • Re: dynamic linking vs. static linking
    ... Then there are numerous examples of the interface ... between libc and libthread changing; ... an archive library libthread does not; ... which is why the older shared libraries are ...
    (comp.unix.solaris)