bluespec.com Forum Index bluespec.com
Bluespec Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

linking foreign C modules

 
Post new topic   Reply to topic    bluespec.com Forum Index -> Tools: Bluesim
View previous topic :: View next topic  
Author Message
adarsh



Joined: 03 Jul 2007
Posts: 18
Location: Bangalore

PostPosted: Sat Jul 07, 2007 3:33 am    Post subject: linking foreign C modules Reply with quote

I have imported a external C function - myfunc in my BSV design. The implementation for myfunc is in the file myfunc.o Now how can I link myfunc.o with rest of bluespec .ba files to generate a bluesim simulation executable?
________
Jaguar XK150 history


Last edited by adarsh on Wed Feb 02, 2011 5:48 am; edited 1 time in total
Back to top
View user's profile Send private message
lcarrasco
Guest





PostPosted: Mon Jul 09, 2007 5:03 am    Post subject: Reply with quote

Hi Adarsh,

Simply append that object at the end of the command while elaborating the BSIM executable, in your case:

bsc -sim -e topName *.ba myfunc.o

That will create the executable a.out, you can indicate another name with -o flag. Please have a look to user-guide section 4.1.2 Imported C functions in BSIM
Back to top
Display posts from previous:   
Post new topic   Reply to topic    bluespec.com Forum Index -> Tools: Bluesim All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
bluespec.com topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP