romainthd / romainos Goto Github PK
View Code? Open in Web Editor NEWMy own OS from scratch using assembly & C++ lol
License: GNU General Public License v3.0
My own OS from scratch using assembly & C++ lol
License: GNU General Public License v3.0
Description : char str[] = "OK"; printString(str);
fonctionne, mais printString("OK")
non.
? Explication : les string littérales sont stockées ailleurs sur le disque, et ne sont donc pas traitées de la même manière.
Preuve : adresse d'un tableau = 0x00007bed
, adresse d'un littéral = 0x0000b000
? Solution : changer le linker
Faut vraiment que je compile moi-même GCC et LD ou je vais avoir des problèmes
Exemple:
Stack<void (*)(KeyEvent)> _eventHandlers(); // Fonctionne
Stack<void (*)(KeyEvent)> _eventHandlers; // Ne fonctionne pas mais devrais
From: Linker, C++
Stacktrace:
./obj/std/io/keyboard.o: In function `__static_initialization_and_destruction_0(int, int)':
keyboard.cpp:(.text+0x290): undefined reference to `__dso_handle'
keyboard.cpp:(.text+0x29f): undefined reference to `__cxa_atexit'
Solution: Créer des constructeurs globaux, normalement déjà présents en C++
printString ne fonctionne plus, sûrement parce que l'origine a été supprimée.
Pas une grande perte vu que les interruptions ont été drop lors du passage 32 bits donc obsolète depuis, mais utile en cas de problème en 16 bits ?
Stacktrace:
printString.asm:12: error: impossible combination of address sizes
printString.asm:12: error: invalid effective address
printString.asm:17: error: impossible combination of address sizes
printString.asm:17: error: invalid effective address
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.