GroovyBee Posted July 6, 2012 Share Posted July 6, 2012 Most of the hurdles to programming the jag in "C" using windows xp with a standard library available and the Removers library have been solved :- http://www.jagware.org/index.php?s=&showtopic=1003&view=findpost&p=14826 11 Quote Link to comment Share on other sites More sharing options...
+CyranoJ Posted July 6, 2012 Share Posted July 6, 2012 Fantastic! Now onto the RAPTOR wrapper so the C gurus can unleash the RISCs? 1 Quote Link to comment Share on other sites More sharing options...
rush6432 Posted July 6, 2012 Share Posted July 6, 2012 Awesome! Ill have to play around with the dev setup sometime when i get a chance. Quote Link to comment Share on other sites More sharing options...
+Gemintronic Posted July 6, 2012 Share Posted July 6, 2012 I reproduced the steps I last took to get a Jag compiler set up and confirmed I can "make" the hello example. This is the output I got when attempting to run make from the example1 folder: C:\jaguar\example1>make WARNING: missing nmake.err; displaying error numbers without messages. ..\bin\vlink.exe -o example1.rom -b rawbin2 -s -S -x -X -T..\cfg\cart. link ..\jlibc\src\crt0.o -L..\lib -lvbcc -L..\jlibc\src -ljlibc -L..\rmv\src -lr mv data.o example1.o Fatal error 8: Cannot open "..\jlibc\src\crt0.o": No such file or directory. Aborting. NMAKE : U1077: Stop. I double checked the C:\jaguar\jlibc\src directory and, although a crt0.s file existed there was no crt0.o or any other file that had the extension .o Any clues? Quote Link to comment Share on other sites More sharing options...
GroovyBee Posted July 6, 2012 Author Share Posted July 6, 2012 Did you build jlibc and the rmv libraries before trying to build the example? Quote Link to comment Share on other sites More sharing options...
+Gemintronic Posted July 6, 2012 Share Posted July 6, 2012 Did you build jlibc and the rmv libraries before trying to build the example? Did I stick it where and did what with whom? *cough* With that extra step it compiled. Jagulator choked on the resulting ROM but that's another battle! Thank you GroovyBee!!! Quote Link to comment Share on other sites More sharing options...
GroovyBee Posted July 6, 2012 Author Share Posted July 6, 2012 Thanks for the compliments so far. It didnt take that long to get it all going in the end. The example rom has been tested and works on real hardware. Quote Link to comment Share on other sites More sharing options...
LinkoVitch Posted July 7, 2012 Share Posted July 7, 2012 Did you build jlibc and the rmv libraries before trying to build the example? *cough* With that extra step it compiled. Jagulator choked on the resulting ROM but that's another battle! I'd give Virtual Jaguar a whirl, it's some shiny magic in an .exe Nice work GroovyBee! 4 Quote Link to comment Share on other sites More sharing options...
+CyranoJ Posted July 7, 2012 Share Posted July 7, 2012 Hey, theloon, when does RobotFindKitten? 2 Quote Link to comment Share on other sites More sharing options...
+Gemintronic Posted July 8, 2012 Share Posted July 8, 2012 (edited) Hey, theloon, when does RobotFindKitten? When I figure out how to use the sprintf command? I didn't manage to get that ROM to run on an emulator. No flash cart for my jag either. My next step is to repeat GroovyBees instructions on a clean PC. Try again with all the Jag emulators I can muster. The two points of failure I can think of is that either the example doesn't run on the current bunch of emulators or I messed up the compilation somehow. Thanks for the reminder! P.S. Before proper documentation, are the header files considered to be the way to learn a command or function? I checked out the DOCs folder in jlibc but it doesn't seem very verbose. Edited July 8, 2012 by theloon 1 Quote Link to comment Share on other sites More sharing options...
+CyranoJ Posted July 8, 2012 Share Posted July 8, 2012 I'd agree with GB above, use VirtualJaguar instead of Jagulator. Quote Link to comment Share on other sites More sharing options...
sh3-rg Posted July 8, 2012 Share Posted July 8, 2012 (edited) I didn't manage to get that ROM to run on an emulator. Quick tip: When using VJ, use JiFFI set to ROM and save as ROM - that will pad the file to the correct size & VJ will be much happier. Edited July 8, 2012 by sh3-rg Quote Link to comment Share on other sites More sharing options...
GroovyBee Posted July 8, 2012 Author Share Posted July 8, 2012 I use Project Tempest for most testing because it doesnt need files padding to a certain size. If I do much more jag development I'll make a command line tool that does the padding out and it'll be called as part of the build process. Then I'll move over to VJ full time. @theloon: The best way to learn "C" is from books and not on the jag . Trying to learn the language and the machine at the same time is a sure fire way of killing the passion for your project in my opinion. When you dont have a good way to debug your code its hard going. I'd also recommend joining the jagware forums. Plenty of coders hang out there. 2 Quote Link to comment Share on other sites More sharing options...
+CyranoJ Posted July 8, 2012 Share Posted July 8, 2012 If you can get it to build a .COF/.ABS file, then they don't need any padding for VJ. JiFFI can convert to either of these formats for you. 1 Quote Link to comment Share on other sites More sharing options...
sh3-rg Posted July 8, 2012 Share Posted July 8, 2012 If you can get it to build a .COF/.ABS file, then they don't need any padding for VJ. JiFFI can convert to either of these formats for you. Of course, but the guy said he couldn't get the ROM to work, so... Quote Link to comment Share on other sites More sharing options...
GroovyBee Posted July 8, 2012 Author Share Posted July 8, 2012 I'll have a look at what output files vlink can produce. I don't have anything against using JIFFI. Its just an extra step in the code\build\emulate cycle. It suits my development style better if I can automate things in the build phase . 2 Quote Link to comment Share on other sites More sharing options...
twoquickcapri Posted July 10, 2012 Share Posted July 10, 2012 @theloon: The best way to learn "C" is from books and not on the jag . Trying to learn the language and the machine at the same time is a sure fire way of killing the passion for your project in my opinion. When you dont have a good way to debug your code its hard going. I'd also recommend joining the jagware forums. Plenty of coders hang out there. What book would you recommend? Quote Link to comment Share on other sites More sharing options...
GroovyBee Posted July 10, 2012 Author Share Posted July 10, 2012 I learnt "C" a long time ago so I can't recommend a good book to start from. Any book that starts with the language keywords and syntax before moving onto library functions would be a good place to start. Books on embedded programming techniques or 68000 assembly language would also be good. If you don't know any other computer languages then find a local 2nd hand book store and see what they have available. Quote Link to comment Share on other sites More sharing options...
LinkoVitch Posted July 10, 2012 Share Posted July 10, 2012 I have always found the "Sam's teach yourself in 21 days" books very very good. They do shorter ones, but I would stick to the 24 day based ones. I have these for a bunch of languages (including C) and found them excellent. This is the one I have http://www.amazon.co.uk/Sams-Teach-Yourself-21-Days/dp/0672324482/ref=sr_1_1?ie=UTF8&qid=1341915462&sr=8-1 Quote Link to comment Share on other sites More sharing options...
wozencl Posted July 10, 2012 Share Posted July 10, 2012 The C Programming Language? It's the one I used. http://www.amazon.co...41915911&sr=8-1 I can't speak for Sam's Teach Yourself C book but their Java book was good, though maybe a little light on detail in parts. 1 Quote Link to comment Share on other sites More sharing options...
sh3-rg Posted July 10, 2012 Share Posted July 10, 2012 "Sam's teach yourself in 21 days" books very very good. They do shorter ones, but I would stick to the 24 day based ones. Do they include three days of rest? :-) 1 Quote Link to comment Share on other sites More sharing options...
+rdemming Posted July 10, 2012 Share Posted July 10, 2012 The C Programming Language? It's the one I used. http://www.amazon.co...41915911&sr=8-1 That one is from the masters K&R themselves. It is very good but not the easiest to read. The O'Reilly's in a nutshell series is excellent too: C in a Nutshell Robert Quote Link to comment Share on other sites More sharing options...
+Gemintronic Posted July 10, 2012 Share Posted July 10, 2012 The C Programming Language? It's the one I used. http://www.amazon.co...41915911&sr=8-1 That one is from the masters K&R themselves. It is very good but not the easiest to read. The O'Reilly's in a nutshell series is excellent too: C in a Nutshell Robert I think we all started with that one (K&R). I also had Microsoft Code Complete: http://www.microsoft...22&locale=en-us It's not a C book but it helps in any language. If only Microsoft followed their own advice Quote Link to comment Share on other sites More sharing options...
ggn Posted July 12, 2012 Share Posted July 12, 2012 There are lots of out of print C books that can be found free of charge these days. A quick google search gave me this page where there are a few c and c++ books free of charge. 3 Quote Link to comment Share on other sites More sharing options...
JagChris Posted July 13, 2012 Share Posted July 13, 2012 Here is one online among the many out there that I started with: http://www.howstuffworks.com/c.htm It links you to free C compilers and gives you a quick start in the language. Its not bad. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.