George Chow

Results 6 comments of George Chow

I simplified C code like below, the problem still persists. It seems that the brackets can only contain numbers. int printf(const char* str, ...); int main() { int i =...

I didn't finish the course yet. I found the problem when I was coding follow your video, I was afraid it was my fault, so I reexamined it by pulling...

I tried it just now, the problem still persists, below is my git information, is it the lastest commit? ``` george@george-ubuntu:~/Desktop/gitcompiler/PeachCompiler$ git remote -v origin https://github.com/nibblebits/PeachCompiler.git (fetch) origin https://github.com/nibblebits/PeachCompiler.git (push)...

section .data section .text extern printf global main ; main function main: push ebp mov ebp, esp sub esp, 16 push dword 1 pop eax mov dword [ebp-4], eax push...

Here are detailed steps I did again today: step 1, git clone https://github.com/nibblebits/PeachCompiler.git step 2, replace content of test.c with: int printf(const char* str, ...); int main() { int x...

Compiler outputs: george@george-ubuntu:~/Desktop/gitcompiler/PeachCompiler$ ./main section .data section .text extern printf global set_dog ; set_dog function set_dog: push ebp mov ebp, esp push dword [ebp+12] lea ebx, [ebp+8] push ebx pop...