Skip to content

Commit

Permalink
Try misaligned stacks.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvanhorn committed Mar 6, 2024
1 parent 86d6308 commit df4bba8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ziggy/src/compile-ops.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,8 @@
{:> F} ;; Dynamically pad the stack to be aligned for a call
{:> F}
(define pad-stack
(seq)
#;
(seq (Mov r15 rsp)
(And r15 #b1000)
(Sub rsp r15)))
Expand All @@ -407,4 +409,6 @@
{:> F} ;; Undo the stack alignment after a call
{:> F}
(define unpad-stack
(seq)
#;
(seq (Add rsp r15)))

0 comments on commit df4bba8

Please sign in to comment.