|
||||||
| General Programming Non language specific, Assembly, Linux/Unix, Mac and anything not covered in other topics. Talk about Programming Theory here. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
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. |
|
|||
|
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#)
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall |
|
|||
|
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.
|
| Sponsored Links |
|
|
|
|||
|
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. |
|
|||
|
You have to love 5 volume manuals. Especially when they're free.
|
| Sponsored Links |
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Free Java Tutorials | EdSquareCat | Java Help | 2 | 08-22-2007 01:25 AM |
| Lots of free Tutorials | Saint | General Programming | 6 | 10-15-2006 11:24 AM |
| General: Tutorial, Keep your PC secure for Free! | TcM | Tutorials, Classes and Code | 2 | 09-21-2006 12:51 PM |
| Free Online PHP Tutorials | RobSoftware | PHP Forum | 5 | 08-24-2006 04:38 PM |
| Assembly tutorials | Kaabi | General Programming | 1 | 07-05-2006 11:18 AM |