Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 24th, 2005, 10:56 AM   #11
Dizzutch
Professional Programmer
 
Dizzutch's Avatar
 
Join Date: Dec 2004
Location: Worcester, MA
Posts: 441
Rep Power: 4 Dizzutch is on a distinguished road
Send a message via ICQ to Dizzutch Send a message via AIM to Dizzutch Send a message via MSN to Dizzutch Send a message via Yahoo to Dizzutch
why don't you run it just in windows. why does the assembler need to come in?
if you've made a .exe from a .c file it's already been linked and assembled.
__________________
naked pictures of you | PFO F@H stats
Dizzutch is offline   Reply With Quote
Old Aug 24th, 2005, 10:58 AM   #12
stevenup7002
Newbie
 
stevenup7002's Avatar
 
Join Date: Aug 2005
Posts: 17
Rep Power: 0 stevenup7002 is on a distinguished road
no you see, I'm making an operating system, and using assembler to boot it and then it starts a C program
stevenup7002 is offline   Reply With Quote
Old Aug 24th, 2005, 11:57 AM   #13
iignotus
Professional Programmer
 
iignotus's Avatar
 
Join Date: Apr 2005
Location: Nowhere Special
Posts: 466
Rep Power: 4 iignotus is on a distinguished road
Send a message via AIM to iignotus
That's not how you go about making an operating system. If you actually were making one, that .exe would likely be completely useless. Searche these forums for making an OS if you're really interested in the subject. Also, look into creating shared libraries, that's how OS's get the job done, not .exe's.
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[ 
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;}
iignotus is offline   Reply With Quote
Old Aug 24th, 2005, 12:08 PM   #14
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4 Polyphemus_ is on a distinguished road
you are thinking wrong, m8.. you make the entrypoint for your kernel in assembly, and assemble it. the entrypoint sets up a stack, and calls the function to start the ball rolling, which can also be made in C. after that, you can just link all the files together.
I'd recommend to link to Sun's ELF format, and use GRUB to load your kernel in the memory. You shouldn't start with the bootloader - you will probably stop frustrated before you've even started your kernel itself.
Polyphemus_ is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:06 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC