mrk-its / rust-mos

Empowering everyone to build reliable and efficient software.
https://www.rust-lang.org
Other
55 stars 7 forks source link

Bad output when compiled in debug mode #28

Closed mrk-its closed 6 months ago

mrk-its commented 6 months ago

https://github.com/mrk-its/aoc2022/tree/new_rust/day10 produces bad output when compiled in debug mode:

$ cargo run -p day10          
    Finished `dev` profile [optimized] target(s) in 0.05s
     Running `mos-sim --cycles target/mos-sim-none/debug/day10`
███   ██  █    ███  ███  ████  ██  █  █ 
█  █ █  █ █    █  █ █  █    █ █  █ █  █ 
█  █ █    █    █  █ ███    █  █  █ █  █ 
███  █ ██ █    ███  █  █  █   ████ █  █ 
█ █  █  █ █    █ █  █  █ █    █  █ █  █ 
█  █  ███ ████ █  █ ███  ████ █  █  ██  

PART1: 74420
593680 cycles

Release mode:

cargo run -p day10 --release

PART1: 14420
470272 cycles
mrk-its commented 6 months ago

cannot reproduce now