+ Reply to Thread
Page 2 of 5
FirstFirst 1 2 3 4 ... LastLast
Results 11 to 20 of 42

Thread: Free Assembly Tutorials

  1. #11
    Guru G_Morgan is a jewel in the rough G_Morgan is a jewel in the rough G_Morgan is a jewel in the rough
    Join Date
    Oct 2007
    Age
    25
    Posts
    537
    You'll have to invoke the thread library for your platform from the ASM. To do this you'll have to learn the ABI for your platform and tell the linker of the appropriate library to use.

    Best way to do it is do something similar to what you want from C and then tell your compiler to output ASM rather than binary code. This will give you some indication of what the ABI for the platform is.

  2. #12
    Newbie Baldmale is an unknown quantity at this point
    Join Date
    Nov 2007
    Location
    Jakarta
    Posts
    6
    Thank you. I have to learn C or C++ or C# or maybe Java then. . Out of everything in the programming language, I only understand assembler for x86 and x51. Kind of dino thing. Thanks

  3. #13
    The Crazy One TkTech will become famous soon enough TkTech's Avatar
    Join Date
    Jun 2006
    Location
    Canada
    Age
    18
    Posts
    1,549
    Blog Entries
    1
    You can easily mix the two. GCC uses GASS, its own version of an asm compiler. It supports _asm_ and asm inline.

    You can also always write the majority of your program in asm and then just use a custom linker script to link it to a compiled c source. (C++ has extra runtime components and is in all likely hood harder to link, never tried [ Even the entry has a 8bit offset doesn't it? ] Same with C#)

  4. #14
    Guru G_Morgan is a jewel in the rough G_Morgan is a jewel in the rough G_Morgan is a jewel in the rough
    Join Date
    Oct 2007
    Age
    25
    Posts
    537
    The only problem with GAS is that it uses AT&T ASM rather than Intel.

  5. #15
    Newbie Baldmale is an unknown quantity at this point
    Join Date
    Nov 2007
    Location
    Jakarta
    Posts
    6
    Thanks, my programing work is mainly firmware programming, using standard PC. Therefore no OS or such, directly load from bios (int 19). Using C++ or C# are major problems for me. Therefore I need tutorial direct implementation from asm for multi processor. Just bought Q6600 cheap quad to test.

  6. #16
    Guru G_Morgan is a jewel in the rough G_Morgan is a jewel in the rough G_Morgan is a jewel in the rough
    Join Date
    Oct 2007
    Age
    25
    Posts
    537
    If you are working on the bare metal then you will have to implement the process model yourself to get threading. You can make it work however which way you want then.

  7. #17
    Newbie Baldmale is an unknown quantity at this point
    Join Date
    Nov 2007
    Location
    Jakarta
    Posts
    6
    Yes, that the way I like it. I already found out that using APIC to set the other cores. Now need to find out, the next step. Any pointer will be really appreciated. Thanks

  8. #18
    Guru G_Morgan is a jewel in the rough G_Morgan is a jewel in the rough G_Morgan is a jewel in the rough
    Join Date
    Oct 2007
    Age
    25
    Posts
    537
    I think your best option is looking up the basic theory behind threaded processing in OS design. You are, after all, talking about implementing part of an OS.

    I think Intel created a thread library when they started shipping core duos. That might be of interest.

  9. #19
    Newbie Baldmale is an unknown quantity at this point
    Join Date
    Nov 2007
    Location
    Jakarta
    Posts
    6
    Yeah, thanks. Still slowly and painfully trying to understand the programmer manual from Intel and AMD.

  10. #20
    Guru G_Morgan is a jewel in the rough G_Morgan is a jewel in the rough G_Morgan is a jewel in the rough
    Join Date
    Oct 2007
    Age
    25
    Posts
    537
    Quote Originally Posted by Baldmale View Post
    Yeah, thanks. Still slowly and painfully trying to understand the programmer manual from Intel and AMD.
    You have to love 5 volume manuals. Especially when they're free.

+ Reply to Thread
Page 2 of 5
FirstFirst 1 2 3 4 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Free Java Tutorials
    By EdSquareCat in forum Java Help
    Replies: 2
    Last Post: 08-22-2007, 01:25 AM
  2. Lots of free Tutorials
    By Saint in forum General Programming
    Replies: 6
    Last Post: 10-15-2006, 11:24 AM
  3. Replies: 2
    Last Post: 09-21-2006, 12:51 PM
  4. Free Online PHP Tutorials
    By RobSoftware in forum PHP Forum
    Replies: 5
    Last Post: 08-24-2006, 04:38 PM
  5. Assembly tutorials
    By Kaabi in forum General Programming
    Replies: 1
    Last Post: 07-05-2006, 11:18 AM

Bookmarks

Bookmarks

     
        Algorithms and Data Structures

        Java tutorials

        Algorithms Forum

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts