Re: Linux Security

From: Mark Hobley (markhobley_at_hotpop.deletethisbit.com)
Date: 02/18/05

  • Next message: P.M. Groen: "Re: Windows and Linux compatible Serial (RS232) comm. code in C++"
    Date: Fri, 18 Feb 2005 21:08:07 GMT
    
    

    dude84 <dhughes594@earthlink.net> wrote:
    >
    > E. Charters wrote:

    My background is MSDOS assembly language, I've not done much Linux stuff, so
    I'm not experienced in this field.

    I can tell you that to use C functions from a library, it is necessary to
    initialize the C environment. The C compiler builds the executable in such a
    manner that a call to an initialization routine called something like __cmain,
    but I can't remember exactly, since it has been a long time since I did this.
    You will need to make the appropriate call before you can use the C libraries.
    You will need to make sure that the stack is set up in such a manner as expected
    by the libraries that you are calling.

    I suggest that you make a "hello world" program in c then get the compiler to
    output the assembly language source. You need to then try and get your
    assembler to compile it and see if you can run it.

    I hope in future to have a MASM 6 equivalent for Linux.

    Regards,

    Mark.

    -- 
    Mark Hobley
    393 Quinton Road West
    Quinton
    Birmingham
    B32 1QE
    Telephone: (0121) 422 6580
    Email: markhobley at hotpop dot donottypethisbit com
    http://markhobley.yi.org/
    

  • Next message: P.M. Groen: "Re: Windows and Linux compatible Serial (RS232) comm. code in C++"

    Relevant Pages

    • Re: ALDS cross-assembler and linker available
      ... linked with a linker to make an executable file, or the assembler output ... language was that there were no system "libraries" to link against. ... the assembly language to do the same thing for the ... If you had the Misosys C compiler, ...
      (comp.sys.tandy)
    • Re: How Are Libraries Programmed? With ASM?
      ... I assume some have been created in ASM, ... compiler and library implementors to do it any specific way. ... In general, most libraries, particularly GUI libraries for C and C++ ... If you want to find out how to interface assembly language functions ...
      (alt.lang.asm)
    • Re: Using C++ on Linux
      ... I'm using Redhat Enterprise Linux 5, and I have KDevelop C/C++ on my ... and I've always only used C on my Linux ... Linux's shared libraries ... ..f77 use the FORTRAN compiler. ...
      (comp.os.linux.misc)
    • Re: Linux Security
      ... My background is MSDOS assembly language, I've not done much Linux stuff, so ... You will need to make the appropriate call before you can use the C libraries. ... I suggest that you make a "hello world" program in c then get the compiler to ... I hope in future to have a MASM 6 equivalent for Linux. ...
      (comp.os.linux.security)
    • Re: How to talk to hardware devices in C
      ... function prototypes, and the compiler handles the rest. ... The .h files are not libraries in Linux any more than they are in Windows, AIX, or any other system. ...
      (comp.lang.c)