CCCPaste

compile_s7_format

import re
import struct

def compile_s7_format(fmt):
s7_fmt = ">"

7593242f4afde

c2nasm with -O0 and -O3

C:
-----------------------------
//-Wall -Wextra -Wpedantic -Wshadow -Wconversion
#include <stdio.h>
#include <stdlib.h>

a76b18ae1749d

************ : log created on : Saturday August 22 2026 @ 04:14:16
00:00:00.000 : [sys] running on x86_64 / Windows 11 x64 (version 10.0.26200)
00:00:00.001 : [sys] Command line: C:\SteamLibrary\steamapps\common\American Truck Simulator\bin\win_x64\amtrucks.exe -mm_pool_size 8192 -mm_max_resource_size 100 -mm_max_tmp_buffers_size 1000 -nointro -unlimitedlog
00:00:00.001 : [cpu] AuthenticAMD [AMD Ryzen 5 5500 ] - 1 package, 6 cores, 12 threads.
00:00:00.001 : [cpu] logical_id : 0 1 2 3 4 5 6 7 8 9 10 11

238fe81402565

************ : log created on : Saturday August 22 2026 @ 16:14:52
00:00:00.000 : [sys] running on x86_64 / Windows 11 x64 (version 10.0.26200)
00:00:00.000 : [sys] Command line: C:\SteamLibrary\steamapps\common\American Truck Simulator\bin\win_x64\amtrucks.exe -mm_pool_size 8192 -mm_max_resource_size 100 -mm_max_tmp_buffers_size 1000 -nointro -unlimitedlog
00:00:00.000 : [cpu] AuthenticAMD [AMD Ryzen 5 5500 ] - 1 package, 6 cores, 12 threads.
00:00:00.000 : [cpu] logical_id : 0 1 2 3 4 5 6 7 8 9 10 11

6cf2ba98ce83b

************ : log created on : Saturday August 22 2026 @ 15:47:04
00:00:00.000 : [sys] running on x86_64 / Windows 11 x64 (version 10.0.26200)
00:00:00.000 : [sys] Command line: C:\SteamLibrary\steamapps\common\American Truck Simulator\bin\win_x64\amtrucks.exe -mm_pool_size 8192 -mm_max_resource_size 100 -mm_max_tmp_buffers_size 1000 -nointro -unlimitedlog
00:00:00.000 : [cpu] AuthenticAMD [AMD Ryzen 5 5500 ] - 1 package, 6 cores, 12 threads.
00:00:00.000 : [cpu] logical_id : 0 1 2 3 4 5 6 7 8 9 10 11

9bd14e696682b

************ : log created on : Saturday August 22 2026 @ 03:43:27
00:00:00.000 : [sys] running on x86_64 / Windows 11 x64 (version 10.0.26200)
00:00:00.000 : [sys] Command line: C:\SteamLibrary\steamapps\common\American Truck Simulator\bin\win_x64\amtrucks.exe -mm_pool_size 8192 -mm_max_resource_size 100 -mm_max_tmp_buffers_size 1000 -nointro -unlimitedlog
00:00:00.000 : [cpu] AuthenticAMD [AMD Ryzen 5 5500 ] - 1 package, 6 cores, 12 threads.
00:00:00.000 : [cpu] logical_id : 0 1 2 3 4 5 6 7 8 9 10 11

1bc4a785d6423

************ : log created on : Saturday August 22 2026 @ 05:36:20
00:00:00.000 : [sys] running on x86_64 / Windows 11 x64 (version 10.0.26200)
00:00:00.000 : [sys] Command line: C:\SteamLibrary\steamapps\common\American Truck Simulator\bin\win_x64\amtrucks.exe -mm_pool_size 8192 -mm_max_resource_size 100 -mm_max_tmp_buffers_size 1000 -nointro -unlimitedlog
00:00:00.000 : [cpu] AuthenticAMD [AMD Ryzen 5 5500 ] - 1 package, 6 cores, 12 threads.
00:00:00.000 : [cpu] logical_id : 0 1 2 3 4 5 6 7 8 9 10 11

for voyeurs and inventors

https://copilot.microsoft.com/conversations/join/TQ8Z3g3QeyS3gb8YNPM7b

7ff86c18fc7e7

************ : log created on : Saturday August 22 2026 @ 16:50:52
00:00:00.000 : [sys] running on x86_64 / Windows 11 x64 (version 10.0.26200)
00:00:00.000 : [sys] Command line: C:\SteamLibrary\steamapps\common\American Truck Simulator\bin\win_x64\amtrucks.exe -mm_pool_size 8192 -mm_max_resource_size 100 -mm_max_tmp_buffers_size 1000 -nointro -unlimitedlog
00:00:00.000 : [cpu] AuthenticAMD [AMD Ryzen 5 5500 ] - 1 package, 6 cores, 12 threads.
00:00:00.000 : [cpu] logical_id : 0 1 2 3 4 5 6 7 8 9 10 11