I have been borrowing & adapting OSDev tutorial code, and I'm wondering how the tutorial code is licensed (GPL, LGPL, Public Domain, etc) as so to comply to it and heed to the license when I release my own source code (and complied code).
Thanks!
OSDev Tutorial License
Re: OSDev Tutorial License
The code on wiki.osdev.ofg is CC0 unless specified otherwise. In fact, nobody will really care if you copy snippets off the wiki.
-
- Member
- Posts: 32
- Joined: Fri Jan 31, 2014 8:21 am
Re: OSDev Tutorial License
Thanks!
Re: OSDev Tutorial License
As a side note, codes from tutorials are for learning purpose, it is very likely not suitable for any serious work.
Re: OSDev Tutorial License
That is a bad habit to be dropped ASAP. That type of thing might work well for some other projects, but I assure you that it does not work well for OS development. There is always a threshold; a point of no return; when you will have to be completely self reliant. And if you don't understand your own code very well (you don't from copying and pasting) you won't stand a chance.I have been borrowing & adapting OSDev tutorial code
Copying and pasting code does not even guarantee that the code you copied is valid or correct, even if it appears to work on some machines.
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
Re: OSDev Tutorial License
Indeed. It's also worth remembering that when you copy code, even if it is correct and you understand it, it might not be good code. I'm still removing the last pieces of bad tutorial code from my OS, going on for the third year.
-
- Member
- Posts: 32
- Joined: Fri Jan 31, 2014 8:21 am
Re: OSDev Tutorial License
Yes, I do understand that. I just copied some code to start off (e.g. bare bones tutorial), but don't intend on making my OS 100% based off of tutorials & copied code (as there are many possible issues as mentioned before)