Solve the task «Modern Development Tools» and win a prize for the best result [final version]

DEADLINE FOR SUBMISSION YOUR SOLUTION: FEBRUARY 20
Tech Talk with Huawei R&D for students of MSU [Faculty], 03.03.2022, 16:00 - 18:00

Dear students of MSU [Faculty],

Huawei Russian Research Institute invites you to Tech Talk with Huawei R&D  for students of MSU [Faculty]!

When: 03.03.2022, 16:00 – 18:00

Where: [Faculty] of Moscow State University, room. ___


As part of this event, we invite you to participate in the competition by solving the problem from Andrey Bokhanko, the main speaker of the event, director of the Advanced Software Technologies Laboratory of the Huawei Russian Research Institute!

For a successful solution of the problem you will receive:

1st place – HUAWEI WATCH 3 Pro

2nd place – HUAWEI Freebuds Pro

3rd place – HUAWEI WATCH FIT

Task:


To solve this task, you need access to a computer with an installed C compiler. A standard Linux distro is perfectly fine!


The goal is simple: make three simple programs execute as fast as possible!

The rules are:

1) You can (and should!) use different compiler options to get maximum performance out of your compiler. You can do so by changing compile_and_run.sh file.

2) There is only one exception: you *can’t* use inter-procedural optimizations (-flto, -ipo and the like).

3) You can (and should!) modify non-main.c files. You *can’t* modify main.c.

4) Each test prints “Elapsed time” after completion. Make these numbers as small as possible (while preserving semantic!) and you’ll win!

Important:

Please download the archive with source files here.


Please submit your results (as an archive containing all the files after your changes), responding to this task.

DEADLINE FOR SUBMISSION YOUR SOLUTION TO THE PROBLEM: FEBRUARY, 24