// SHARED OBJECT VARIABLE SHARING TEST
// NAME OF SHARED VARIABLES: shared1, shared2, shared3, shared4
// dlerror();
// SO FILE MADE WITH:
// gcc -std=c++17 -shared -o example.so -fPIC example.cpp
// SYMBOL CHECKING DONE WITH
// nm -D example.so
// Job ex1;
// ex1.loadFunction(utils::cpsim_path + "/sharedObjectFiles/example.so", "sim_main");
// ex1.run();
// std::cout << "(inside main) shared values are: " << shared::shared1 << " " << shared::shared2 << " " << shared::shared3 << " " << shared::shared4 << std::endl;
// shared::shared1 = 20;
// shared::shared2 = 30;
// shared::shared3 = 40;
// shared::shared4 = 50;
// ex1.run();
// std::cout << "(inside main) shared values are now: " << shared::shared1 << " " << shared::shared2 << " " << shared::shared3 << " " << shared::shared4 << std::endl;
// std::cout << "(inside main) shared variable is: " << *ex1.shared_variable << std::endl;
// *ex1.shared_variable = 15;
// return 0;
// ENDS HERE
forked from rubis-lab/CPSim_Linux_Generalized
-
Notifications
You must be signed in to change notification settings - Fork 0
License
sunhongmin225/CPSim_Linux_Generalized
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Java 59.1%
- C++ 26.3%
- Makefile 10.1%
- CMake 2.4%
- C 2.1%