Lost Password?

Go Back   CodeCall Programming Forum > Software Development > General Programming

General Programming Non language specific, Assembly, Linux/Unix, Mac and anything not covered in other topics. Talk about Programming Theory here.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old 11-05-2007, 03:57 AM
G_Morgan G_Morgan is offline
Guru
 
Join Date: Oct 2007
Age: 24
Posts: 388
Rep Power: 10
G_Morgan is a name known to allG_Morgan is a name known to allG_Morgan is a name known to allG_Morgan is a name known to allG_Morgan is a name known to allG_Morgan is a name known to all
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 11-07-2007, 04:00 AM
Baldmale Baldmale is offline
Newbie
 
Join Date: Nov 2007
Location: Jakarta
Posts: 6
Rep Power: 0
Baldmale is on a distinguished road
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 11-09-2007, 12:48 PM
TkTech TkTech is offline
CrazyOne
 
Join Date: Jun 2006
Posts: 718
Last Blog:
Having trouble with yo...
Rep Power: 50
TkTech is on a distinguished road
Send a message via MSN to TkTech
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 11-10-2007, 05:08 AM
G_Morgan G_Morgan is offline
Guru
 
Join Date: Oct 2007
Age: 24
Posts: 388
Rep Power: 10
G_Morgan is a name known to allG_Morgan is a name known to allG_Morgan is a name known to allG_Morgan is a name known to allG_Morgan is a name known to allG_Morgan is a name known to all
Default

The only problem with GAS is that it uses AT&T ASM rather than Intel.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 11-19-2007, 02:13 AM
Baldmale Baldmale is offline
Newbie
 
Join Date: Nov 2007
Location: Jakarta
Posts: 6
Rep Power: 0
Baldmale is on a distinguished road
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #16 (permalink)  
Old 11-19-2007, 07:22 AM
G_Morgan G_Morgan is offline
Guru
 
Join Date: Oct 2007
Age: 24
Posts: 388
Rep Power: 10
G_Morgan is a name known to allG_Morgan is a name known to allG_Morgan is a name known to allG_Morgan is a name known to allG_Morgan is a name known to allG_Morgan is a name known to all
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17 (permalink)  
Old 11-20-2007, 03:09 AM
Baldmale Baldmale is offline
Newbie
 
Join Date: Nov 2007
Location: Jakarta
Posts: 6
Rep Power: 0
Baldmale is on a distinguished road
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #18 (permalink)  
Old 11-20-2007, 04:00 AM
G_Morgan G_Morgan is offline
Guru
 
Join Date: Oct 2007
Age: 24
Posts: 388
Rep Power: 10
G_Morgan is a name known to allG_Morgan is a name known to allG_Morgan is a name known to allG_Morgan is a name known to allG_Morgan is a name known to allG_Morgan is a name known to all
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #19 (permalink)  
Old 11-22-2007, 02:54 AM
Baldmale Baldmale is offline
Newbie
 
Join Date: Nov 2007
Location: Jakarta
Posts: 6
Rep Power: 0
Baldmale is on a distinguished road
Default

Yeah, thanks. Still slowly and painfully trying to understand the programmer manual from Intel and AMD.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #20 (permalink)  
Old 11-22-2007, 11:54 AM
G_Morgan G_Morgan is offline
Guru
 
Join Date: Oct 2007
Age: 24
Posts: 388
Rep Power: 10
G_Morgan is a name known to allG_Morgan is a name known to allG_Morgan is a name known to allG_Morgan is a name known to allG_Morgan is a name known to allG_Morgan is a name known to all
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT -5. The time now is 10:14 PM.

Contest Stats

John ........ 87.50000
dargueta ........ 75.00000
Xav ........ 50.00000
MeTh0Dz ........ 20.00000
gaylo565 ........ 18.00000
Johnnyboy ........ 3.00000

Contest Rules

Ads