+ Reply to Thread
Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 48

Thread: Free Assembly Tutorials

  1. #11
    Join Date
    Oct 2007
    Posts
    538
    Rep Power
    21
    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. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #12
    Baldmale is offline Newbie
    Join Date
    Nov 2007
    Location
    Jakarta
    Posts
    6
    Rep Power
    0
    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

  4. #13
    TkTech's Avatar
    TkTech is offline The Crazy One
    Join Date
    Jun 2006
    Location
    Canada
    Posts
    1,412
    Blog Entries
    1
    Rep Power
    31
    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#)

  5. #14
    Join Date
    Oct 2007
    Posts
    538
    Rep Power
    21
    The only problem with GAS is that it uses AT&T ASM rather than Intel.

  6. #15
    Baldmale is offline Newbie
    Join Date
    Nov 2007
    Location
    Jakarta
    Posts
    6
    Rep Power
    0
    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.

  7. #16
    Join Date
    Oct 2007
    Posts
    538
    Rep Power
    21
    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.

  8. #17
    Baldmale is offline Newbie
    Join Date
    Nov 2007
    Location
    Jakarta
    Posts
    6
    Rep Power
    0
    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

  9. #18
    Join Date
    Oct 2007
    Posts
    538
    Rep Power
    21
    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.

  10. #19
    Baldmale is offline Newbie
    Join Date
    Nov 2007
    Location
    Jakarta
    Posts
    6
    Rep Power
    0
    Yeah, thanks. Still slowly and painfully trying to understand the programmer manual from Intel and AMD.

  11. #20
    Join Date
    Oct 2007
    Posts
    538
    Rep Power
    21
    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 1234 ... LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Free Assembly Tutorials
    By Jordan in forum General Programming
    Replies: 41
    Last Post: 11-09-2009, 06:24 PM
  2. And about assembly tutorials ?
    By outsid3r in forum General Programming
    Replies: 102
    Last Post: 10-09-2008, 05:11 PM
  3. Free Java Tutorials
    By EdSquareCat in forum Java Help
    Replies: 2
    Last Post: 08-21-2007, 11:25 PM
  4. Free Online PHP Tutorials
    By RobSoftware in forum PHP Development
    Replies: 5
    Last Post: 08-24-2006, 02:38 PM
  5. Assembly tutorials
    By Kaabi in forum General Programming
    Replies: 1
    Last Post: 07-05-2006, 09:18 AM

Tags for this Thread

Bookmarks

Posting Permissions

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