| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
C++ array code ints vs. arrays
How variables being initialized in assembly?
Where are the values in %rip coming from (Why is it outside of program memory?)
Learn about objdump -d -s main
Who came up with these seemingly complex rules?
Why did they do it? (Thanks ChatGPT)
# curr addr + instruction len + assembly value
# 0x100000f3d + 7 + 0x4c
# find memory address of location
p/x (0x100000f3d+0x4c+7)
# (long) 0x0000000100000f90
# Printing values inside rax
(lldb) p/x $rax
# (unsigned long) 0x0000000b00000005 -> 11, 5
(lldb) p/d ((int*)&$rax)[0]
# (int) 5
(lldb) p/d ((int*)&$rax)[1]
# (int) 11
(lldb) register read $rax -f int32
# rax = {5 11}
# display 5 values at mem location
x/5xd (0x100000f3d+0x4c+7)
# 0x100000f90: 12
# 0x100000f94: 23
# 0x100000f98: 34
# 0x100000f9c: 45
# 0x100000fa0: 56objdump -s -d main
Why is the C++ Array "Hidden" in Assembly?
C++ Assembly Deep Dive: Chasing Where the Data Lives
Low Level C++: How the Compiler Stores Array Data
C++ Array Initialization vs. Integer Initialization in Assembly
Where are Global Variables and Constants Stored in C++?
How are Global Constants Stored in C++ Binaries?
How to use objdump -d -s to Debug C++ Binaries?
| Back | FazBrowse Home | New Git URL |