Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12745 Discussions

Question on modifying the JAM Staple byte code player

Altera_Forum
Honored Contributor II
1,247 Views

I am trying to call peek/poke type of function written in C++ from Altera provided JAM Staple Byte Code player C code. In doing so I need to start including stdafx.h and other header files in the C code. But Visual studio errors out in doing so. I need to call these customized get/put functions written in C++ from C code. I am not sure what is the best way to handle this.  

 

Your suggestions will be very helpful to me.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
525 Views

Not much info to go on, but if you don't already know, try looking up info on: 

extern "C" { // code and/or header info here }
0 Kudos
Altera_Forum
Honored Contributor II
525 Views

I have patched the jamstub.c file to use InpOut32.DLL. 

 

Posted source & binaries on alterawiki.com
0 Kudos
Reply