diff --git a/Cargo.toml b/Cargo.toml index 90c70a6072..43163bae07 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -76,4 +76,5 @@ cm7-r0p1 = ["cortex-m/cm7-r0p1"] timer-queue = ["cortex-m-rtfm-macros/timer-queue"] [profile.release] -lto = true \ No newline at end of file +lto = true +codegen-units = 1 \ No newline at end of file diff --git a/examples/periodic-payload.rs b/examples/periodic-payload.rs index 3330f7f841..6a91e03063 100644 --- a/examples/periodic-payload.rs +++ b/examples/periodic-payload.rs @@ -23,8 +23,8 @@ // ## -O3 // // init -// a(bl=8000000, now=8000172, input=0) -// a(bl=16000000, now=16000172, input=1) +// a(bl=8000000, now=8000164, input=0) +// a(bl=16000000, now=16000164, input=1) // // ## -Os // diff --git a/examples/periodic-preemption-payload.rs b/examples/periodic-preemption-payload.rs index 85d23ed65f..fbf367badd 100644 --- a/examples/periodic-preemption-payload.rs +++ b/examples/periodic-preemption-payload.rs @@ -35,16 +35,17 @@ // // ## -O3 // -// a(bl=16000000, now=16000207, input=0) -// b(bl=24000000, now=24000202, input=0) -// a(bl=32000000, now=32000207, input=1) -// b(bl=48000000, now=48000229, input=1) -// a(bl=48000000, now=48001984, input=2) -// a(bl=64000000, now=64000207, input=3) -// b(bl=72000000, now=72000202, input=2) -// a(bl=80000000, now=80000207, input=4) -// b(bl=96000000, now=96000229, input=3) -// a(bl=96000000, now=96001984, input=5) +// init +// a(bl=16000000, now=16000193, input=0) +// b(bl=24000000, now=24000196, input=0) +// a(bl=32000000, now=32000193, input=1) +// b(bl=48000000, now=48000225, input=1) +// a(bl=48000000, now=48001958, input=2) +// a(bl=64000000, now=64000193, input=3) +// b(bl=72000000, now=72000196, input=2) +// a(bl=80000000, now=80000193, input=4) +// b(bl=96000000, now=96000225, input=3) +// a(bl=96000000, now=96001958, input=5) // // ## -Os // @@ -91,13 +92,13 @@ app! { tasks: { a: { async_after: [a], - input: u32, + input: u16, resources: [ITM], }, b: { async_after: [b], - input: u32, + input: u16, priority: 2, resources: [ITM], }, diff --git a/examples/periodic-preemption.rs b/examples/periodic-preemption.rs index d042c19a91..a458d2bfc7 100644 --- a/examples/periodic-preemption.rs +++ b/examples/periodic-preemption.rs @@ -37,16 +37,16 @@ // ## -O3 // // init -// a(bl=16000000, now=16000198) -// b(bl=24000000, now=24000205) -// a(bl=32000000, now=32000198) -// b(bl=48000000, now=48000232) -// a(bl=48000000, now=48001454) -// a(bl=64000000, now=64000198) -// b(bl=72000000, now=72000205) -// a(bl=80000000, now=80000198) -// b(bl=96000000, now=96000232) -// a(bl=96000000, now=96001454) +// a(bl=16000000, now=16000193) +// b(bl=24000000, now=24000196) +// a(bl=32000000, now=32000193) +// b(bl=48000000, now=48000225) +// a(bl=48000000, now=48001440) +// a(bl=64000000, now=64000193) +// b(bl=72000000, now=72000196) +// a(bl=80000000, now=80000193) +// b(bl=96000000, now=96000225) +// a(bl=96000000, now=96001440) // // ## -Os // diff --git a/examples/periodic.rs b/examples/periodic.rs index ee30a5bab5..ff5160349f 100644 --- a/examples/periodic.rs +++ b/examples/periodic.rs @@ -15,7 +15,7 @@ // // # Indices (new) // -// 28 bytes .bss +// 32 bytes .bss // // ## -Os // @@ -26,8 +26,9 @@ // ## -O3 // // init -// a(bl=8000000, now=8000169) -// a(bl=16000000, now=16000169) +// a(bl=0, now=68) +// a(bl=8000000, now=8000165) +// a(bl=16000000, now=16000165) #![deny(unsafe_code)] #![deny(warnings)]