Skip to content

Commit 56ce584

Browse files
authored
Merge pull request #80 from OttoCoddo/main
A new entry
2 parents e05badd + 309c7cb commit 56ce584

4 files changed

Lines changed: 551 additions & 0 deletions

File tree

entries/ocoddo/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# O Coddo
2+
3+
This is a fun test and was shared as requested by a friendly face. Do not consider it a final or stable work. These projects need to be optimized for the destination hardware, and I do not have easy access to such hardware.
4+
5+
Hope you find this interesting.
6+
7+
## How to use
8+
9+
- Get the latest FPC and Lazarus from https://gitlab.com/freepascal.org. [fpcupdeluxe](https://github.com/LongDirtyAnimAlf/fpcupdeluxe/) is suggested.
10+
- Get the SCL, the standard library used for development. Clone https://github.com/SCLOrganization/SCL and https://github.com/SCLOrganization/Libraries
11+
- Using Lazarus, open SCL packages: `SCL.lpk` and `SCLLibraries.lpk`
12+
- Open the project from `src` folder
13+
- Make sure you set build mode to `Release`
14+
- Build
15+
- Run as `./ocoddo ./input.txt`
16+
- You can try different parameters for your hardware: `./ocoddo ./input.txt --jumper-count=192 --part-size=192`. Try values from `128`, `192`, `256`, and up
17+
18+
19+
20+
Made by O

entries/ocoddo/src/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Output
2+
*.lps

entries/ocoddo/src/Project1.lpi

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<CONFIG>
3+
<ProjectOptions>
4+
<Version Value="12"/>
5+
<PathDelim Value="\"/>
6+
<General>
7+
<Flags>
8+
<MainUnitHasCreateFormStatements Value="False"/>
9+
<MainUnitHasTitleStatement Value="False"/>
10+
<MainUnitHasScaledStatement Value="False"/>
11+
</Flags>
12+
<SessionStorage Value="InProjectDir"/>
13+
<Title Value="Project1"/>
14+
<UseAppBundle Value="False"/>
15+
<ResourceType Value="res"/>
16+
</General>
17+
<BuildModes>
18+
<Item Name="Default" Default="True"/>
19+
<Item Name="Debug">
20+
<CompilerOptions>
21+
<Version Value="11"/>
22+
<PathDelim Value="\"/>
23+
<Target>
24+
<Filename Value="../../../bin/ocoddo"/>
25+
</Target>
26+
<SearchPaths>
27+
<IncludeFiles Value="$(ProjOutDir)"/>
28+
<UnitOutputDirectory Value="..\..\..\bin\lib\$(TargetCPU)-$(TargetOS)"/>
29+
</SearchPaths>
30+
<Parsing>
31+
<SyntaxOptions>
32+
<IncludeAssertionCode Value="True"/>
33+
</SyntaxOptions>
34+
</Parsing>
35+
<CodeGeneration>
36+
<Checks>
37+
<IOChecks Value="True"/>
38+
<RangeChecks Value="True"/>
39+
<OverflowChecks Value="True"/>
40+
<StackChecks Value="True"/>
41+
</Checks>
42+
<VerifyObjMethodCallValidity Value="True"/>
43+
</CodeGeneration>
44+
<Linking>
45+
<Debugging>
46+
<DebugInfoType Value="dsDwarf3"/>
47+
<UseHeaptrc Value="True"/>
48+
<TrashVariables Value="True"/>
49+
<UseExternalDbgSyms Value="True"/>
50+
</Debugging>
51+
</Linking>
52+
</CompilerOptions>
53+
</Item>
54+
<Item Name="Release">
55+
<CompilerOptions>
56+
<Version Value="11"/>
57+
<PathDelim Value="\"/>
58+
<Target>
59+
<Filename Value="../../../bin/ocoddo"/>
60+
</Target>
61+
<SearchPaths>
62+
<IncludeFiles Value="$(ProjOutDir)"/>
63+
<UnitOutputDirectory Value="..\..\..\bin\lib\$(TargetCPU)-$(TargetOS)"/>
64+
</SearchPaths>
65+
<CodeGeneration>
66+
<SmartLinkUnit Value="True"/>
67+
<Optimizations>
68+
<OptimizationLevel Value="3"/>
69+
</Optimizations>
70+
</CodeGeneration>
71+
<Linking>
72+
<Debugging>
73+
<GenerateDebugInfo Value="False"/>
74+
<RunWithoutDebug Value="True"/>
75+
</Debugging>
76+
<LinkSmart Value="True"/>
77+
</Linking>
78+
</CompilerOptions>
79+
</Item>
80+
<SharedMatrixOptions Count="1">
81+
<Item1 ID="060863917789" Modes="Release" Value="-dRelease"/>
82+
</SharedMatrixOptions>
83+
</BuildModes>
84+
<PublishOptions>
85+
<Version Value="2"/>
86+
<UseFileFilters Value="True"/>
87+
</PublishOptions>
88+
<RunParams>
89+
<FormatVersion Value="2"/>
90+
</RunParams>
91+
<RequiredPackages>
92+
<Item>
93+
<PackageName Value="SCLLibraries"/>
94+
</Item>
95+
<Item>
96+
<PackageName Value="SCL"/>
97+
</Item>
98+
</RequiredPackages>
99+
<Units>
100+
<Unit>
101+
<Filename Value="Project1.lpr"/>
102+
<IsPartOfProject Value="True"/>
103+
</Unit>
104+
</Units>
105+
</ProjectOptions>
106+
<CompilerOptions>
107+
<Version Value="11"/>
108+
<PathDelim Value="\"/>
109+
<Target>
110+
<Filename Value="../../../bin/ocoddo"/>
111+
</Target>
112+
<SearchPaths>
113+
<IncludeFiles Value="$(ProjOutDir)"/>
114+
<UnitOutputDirectory Value="..\..\..\bin\lib\$(TargetCPU)-$(TargetOS)"/>
115+
</SearchPaths>
116+
<Linking>
117+
<Debugging>
118+
<DebugInfoType Value="dsDwarf3"/>
119+
</Debugging>
120+
</Linking>
121+
</CompilerOptions>
122+
<Debugging>
123+
<Exceptions>
124+
<Item>
125+
<Name Value="EAbort"/>
126+
</Item>
127+
<Item>
128+
<Name Value="ECodetoolError"/>
129+
</Item>
130+
<Item>
131+
<Name Value="EFOpenError"/>
132+
</Item>
133+
</Exceptions>
134+
</Debugging>
135+
</CONFIG>

0 commit comments

Comments
 (0)