- User/Kernel split
- 3 GB user, 1 GB kernel
- User split
- 1 MB unmapped for illegal access exceptions
.text,.rodata,.data, heap and stack- Heap is right after
.data - Stack is at the end of the available user RAM
- Heap and stack grow towards each other
- Kernel split
- 512 MB VideoCore RAM (reserved address space, actual RAM may be less)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stddef.h> | |
| #include <string.h> | |
| #include <lua.h> | |
| #include <lauxlib.h> | |
| #include "luasocket/src/ftp.lua.h" | |
| #include "luasocket/src/headers.lua.h" | |
| #include "luasocket/src/http.lua.h" | |
| #include "luasocket/src/ltn12.lua.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Based off https://github.com/EmmanuelOga/easing | |
| -- For all easing functions: | |
| -- t = elapsed time between 0 and 1 | |
| -- b = begin | |
| -- c = end | |
| local pow = math.pow | |
| local sin = math.sin | |
| local cos = math.cos |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <imgui.h> | |
| #include <imgui_impl_sdl.h> | |
| #include <imgui_impl_opengl2.h> | |
| #include <SDL.h> | |
| #include <SDL_opengl.h> | |
| #include <string> | |
| class Application |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| The MIT License (MIT) | |
| Copyright (c) 2016 Andre Leiradella | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdint.h> | |
| /*---------------------------------------------------------------------------*/ | |
| /* stb_image config and inclusion */ | |
| #define STBI_ASSERT( x ) | |
| #define STB_IMAGE_IMPLEMENTATION | |
| #include "stb_image.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdint.h> | |
| /*---------------------------------------------------------------------------*/ | |
| /* stb_image config and inclusion */ | |
| #define STBI_ASSERT( x ) | |
| #define STB_IMAGE_IMPLEMENTATION | |
| #include "stb_image.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set title 'Graph Title' | |
| set xlabel 'ms' | |
| set ylabel 'Mb' | |
| set terminal svg | |
| set output 'graph.svg' | |
| plot 'lua.log' title 'Lua' with lines, 'wren.log' title 'Wren' with lines |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <string.h> | |
| #include <inttypes.h> | |
| #include <stdlib.h> | |
| #include <wren.h> | |
| #ifdef __APPLE__ | |
| #include <mach/mach_time.h> | |
| #else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <string.h> | |
| #include <inttypes.h> | |
| #include <stdlib.h> | |
| #include <lua.h> | |
| #include <lualib.h> | |
| #include <lauxlib.h> | |
| #ifdef __APPLE__ |