Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
so as you can see - i want to do some stuff and then jump to main().What i dont know is, how can i link these files together to create pure binary.(using ld).thanks a lot for showing me how to do that
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
lama wrote:preps.o: file not recognized: File format not recognized...
Well?
What's the format of preps.o, that it is not recognized? Did you try to find out? If not, why not? If yes, why didn't you provide the information to us (if it didn't already give you the critical hint as to what the problem was)?
Hint: 'file' is a very useful tool.
Combuster wrote:Oh and, before you report more problems. GCC Cross-Compiler
Every good solution is obvious once you've found it.
I notice the OP is not ready for OS development. He fails to see the solution even when stabbed twice with the Page Of Answers, besides breaking half the rules.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
to Combuster:
i just wanted to know how to handle with gcc properly , when i want to mix asm codes with c codes, thats all.i have never programmed in c, so i never had to use gcc, i dont have to use c for my project at all - i can do it in asm , but again : a just wanted to try a different way how to do that.so , please dont blame me from my stupidity.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
nn names are correct, thats just spell check or whatewher.but that guy above said , that he's done with me , so great - i will built that gcc cc, or screw c and continue writing asm , or shoot myself .But probably i'm no use, so no mather what i do - it will be wrong.but that's not a part of a topic, sorry about that.
Come on. You were given helpful hints, but it was apparent by your subsequent posts that you ignored them. This happens quite often on this forum, which results in rather little tolerance toward that behaviour.
Yes, this wasn't something that earned you fame, but that doesn't mean you're a failure. Only throwing the towel and stopping to learn new things would mean that.
If there is something you didn't understand, ask the proper question, and you will be answered. But you didn't tell us you don't know about C, for example, which might have softened the response you got.
Every good solution is obvious once you've found it.