Skip to content

Instantly share code, notes, and snippets.

Before call to Function1:
Register Value on stack Memory Address Notes
-----------------------
| saved %eip | 0xbfffffd0
----------------------- ----
%ebp -> | saved %ebp | 0xbfffffcc |
----------------------- | Main's stack frame
| local variables | 0xbfffffc8 |
...
pop %ebp
ret
foo:
# Begin function prolog
push %ebp
mov %esp, %ebp
# End function prolog
....
@fgsahoward
fgsahoward / Dockerfile
Created June 1, 2018 13:43
Qt WebAsm Arch Linux Dockerfile
FROM base/archlinux:latest AS base
RUN pacman -Sy --noconfirm binutils perl python libxcb clang emscripten git make cmake qbs
ENV PATH="/usr/lib/emscripten:${PATH}"
FROM base AS repos-configured
COPY ./configure-qt5-repos.sh ./
RUN ./configure-qt5-repos.sh
FROM repos-configured AS repos-built