Comments (3)
This is just a side-effect of LTO/-fwhole-program
: (see also [https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html])
Just put __attribute__((externally_visible))
in front of void HerpDerp()
and it will work fine. However be careful and read the link above to avoid any strange duplication behavior.
from vscode-amiga-debug.
This solved the issue and I do have to admit that I wasn't aware of the effect of '-fwhole-program'. Still two things bother me:
- How can we avoid having people fall into the same trap? It will happen eventually.
- Why is the effect not observable via 'm68k-amiga-elf-objdump'? I would have understood the whole problem if the symbol was absent from the object file. Still this isn't the case. Maybe I'm missing the whole picture. I'm by far no compiler/linker expert.
from vscode-amiga-debug.
- I thought about that as well, but I'm not sure.. This was the first time this ever came up.
- Thing is, with LTO the object files aren't standard. They contain only intermediate code representation. The actual compiling is done during the linking step. This is what enables the huge benefits of LTO (project-wide code visibility for inlining, optimizing, etc.)
from vscode-amiga-debug.
Related Issues (20)
- FS-UAE warp launch? HOT 14
- update FS-UAE and merge aga colors patch HOT 1
- Profiler: Windows AppData/Local/Temp cleanup job HOT 1
- V1.7.0 does not fire up WinUAE/infinite loop HOT 6
- Unable to use amigalib. HOT 4
- Memory types in code sections HOT 3
- Add floppy or hard drive to emulator while debugging HOT 2
- Missing <proto/narrator.h> HOT 2
- any chance of getting stdlib? HOT 3
- fatal error: stdint.h: No such file or directory HOT 3
- MacOS: no more F5 to run the debugger HOT 2
- Resource bitmap colors are inverted. HOT 1
- Could the debug text font be changed? HOT 3
- 'index' is not a constant expression when changing main.c to main.cpp HOT 1
- macOS/FS-UAE: Error: the description can't be converted into a problem matcher HOT 4
- MacOS : fatal error: cannot execute 'cc1': execvp: No such file or directory HOT 8
- settings.json wrong? HOT 3
- gcc8_a_support missing on new project HOT 3
- Emulator exited with code/signal 127 before debugger could connect. HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-amiga-debug.