preparing next version

This commit is contained in:
Irmen de Jong
2023-09-08 21:29:49 +02:00
parent b500a0d477
commit 6afdd4e6fd
18 changed files with 47 additions and 47 deletions

View File

@@ -1,8 +1,8 @@
<component name="libraryTable"> <component name="libraryTable">
<library name="jetbrains.kotlinx.cli.jvm" type="repository"> <library name="jetbrains.kotlinx.cli.jvm" type="repository">
<properties include-transitive-deps="false" maven-id="org.jetbrains.kotlinx:kotlinx-cli-jvm:0.3.5" /> <properties include-transitive-deps="false" maven-id="org.jetbrains.kotlinx:kotlinx-cli-jvm:0.3.6" />
<CLASSES> <CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/jetbrains/kotlinx/kotlinx-cli-jvm/0.3.5/kotlinx-cli-jvm-0.3.5.jar!/" /> <root url="jar://$MAVEN_REPOSITORY$/org/jetbrains/kotlinx/kotlinx-cli-jvm/0.3.6/kotlinx-cli-jvm-0.3.6.jar!/" />
</CLASSES> </CLASSES>
<JAVADOC /> <JAVADOC />
<SOURCES /> <SOURCES />

View File

@@ -1,9 +1,9 @@
<component name="libraryTable"> <component name="libraryTable">
<library name="slf4j.simple" type="repository"> <library name="slf4j.simple" type="repository">
<properties maven-id="org.slf4j:slf4j-simple:2.0.7" /> <properties maven-id="org.slf4j:slf4j-simple:2.0.9" />
<CLASSES> <CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/slf4j/slf4j-simple/2.0.7/slf4j-simple-2.0.7.jar!/" /> <root url="jar://$MAVEN_REPOSITORY$/org/slf4j/slf4j-simple/2.0.9/slf4j-simple-2.0.9.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/slf4j/slf4j-api/2.0.7/slf4j-api-2.0.7.jar!/" /> <root url="jar://$MAVEN_REPOSITORY$/org/slf4j/slf4j-api/2.0.9/slf4j-api-2.0.9.jar!/" />
</CLASSES> </CLASSES>
<JAVADOC /> <JAVADOC />
<SOURCES /> <SOURCES />

View File

@@ -32,10 +32,10 @@ dependencies {
sourceSets { sourceSets {
main { main {
java { java {
srcDirs = ["${project.projectDir}/src"] srcDir "${project.projectDir}/src"
} }
resources { resources {
srcDirs = ["${project.projectDir}/res"] srcDir "${project.projectDir}/res"
} }
} }
} }

View File

@@ -36,10 +36,10 @@ dependencies {
sourceSets { sourceSets {
main { main {
java { java {
srcDirs = ["${project.projectDir}/src"] srcDir "${project.projectDir}/src"
} }
resources { resources {
srcDirs = ["${project.projectDir}/res"] srcDir "${project.projectDir}/res"
} }
} }
test { test {

View File

@@ -36,10 +36,10 @@ dependencies {
sourceSets { sourceSets {
main { main {
java { java {
srcDirs = ["${project.projectDir}/src"] srcDir "${project.projectDir}/src"
} }
resources { resources {
srcDirs = ["${project.projectDir}/res"] srcDir "${project.projectDir}/res"
} }
} }
} }

View File

@@ -36,10 +36,10 @@ dependencies {
sourceSets { sourceSets {
main { main {
java { java {
srcDirs = ["${project.projectDir}/src"] srcDir "${project.projectDir}/src"
} }
resources { resources {
srcDirs = ["${project.projectDir}/res"] srcDir "${project.projectDir}/res"
} }
} }
test { test {

View File

@@ -33,10 +33,10 @@ dependencies {
sourceSets { sourceSets {
main { main {
java { java {
srcDirs = ["${project.projectDir}/src"] srcDir "${project.projectDir}/src"
} }
resources { resources {
srcDirs = ["${project.projectDir}/res"] srcDir "${project.projectDir}/res"
} }
} }
} }

View File

@@ -36,7 +36,7 @@ dependencies {
implementation "org.antlr:antlr4-runtime:4.12.0" implementation "org.antlr:antlr4-runtime:4.12.0"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8" implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
// implementation "org.jetbrains.kotlin:kotlin-reflect" // implementation "org.jetbrains.kotlin:kotlin-reflect"
implementation 'org.jetbrains.kotlinx:kotlinx-cli:0.3.5' implementation 'org.jetbrains.kotlinx:kotlinx-cli:0.3.6'
implementation "com.michael-bull.kotlin-result:kotlin-result-jvm:1.1.18" implementation "com.michael-bull.kotlin-result:kotlin-result-jvm:1.1.18"
testImplementation project(':intermediate') testImplementation project(':intermediate')
@@ -59,10 +59,10 @@ configurations {
sourceSets { sourceSets {
main { main {
java { java {
srcDirs = ["${project.projectDir}/src"] srcDir "${project.projectDir}/src"
} }
resources { resources {
srcDirs = ["${project.projectDir}/res"] srcDir "${project.projectDir}/res"
} }
} }
test { test {

View File

@@ -5,11 +5,11 @@ package prog8.buildversion
*/ */
const val MAVEN_GROUP = "prog8" const val MAVEN_GROUP = "prog8"
const val MAVEN_NAME = "compiler" const val MAVEN_NAME = "compiler"
const val VERSION = "9.3-SNAPSHOT" const val VERSION = "9.5-SNAPSHOT"
const val GIT_REVISION = 4012 const val GIT_REVISION = 4097
const val GIT_SHA = "9167ba499de99696aa7c6887d4867eae70eb5caf" const val GIT_SHA = "UNKNOWN"
const val GIT_DATE = "2023-07-30T15:49:35Z" const val GIT_DATE = "2023-09-08T19:29:49Z"
const val GIT_BRANCH = "master" const val GIT_BRANCH = "master"
const val BUILD_DATE = "2023-07-30T16:41:27Z" const val BUILD_DATE = "2023-09-12T19:47:42Z"
const val BUILD_UNIX_TIME = 1690735287514L const val BUILD_UNIX_TIME = 1694548062963L
const val DIRTY = 1 const val DIRTY = 1

View File

@@ -36,7 +36,7 @@ configurations.all {
sourceSets { sourceSets {
main { main {
java { java {
srcDirs = ["${project.projectDir}/src"] srcDir "${project.projectDir}/src"
} }
} }
} }

View File

@@ -28,9 +28,9 @@ dependencies {
implementation project(':codeCore') implementation project(':codeCore')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8" implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
// implementation "org.jetbrains.kotlin:kotlin-reflect" // implementation "org.jetbrains.kotlin:kotlin-reflect"
implementation 'org.jetbrains.kotlinx:kotlinx-cli:0.3.5' implementation 'org.jetbrains.kotlinx:kotlinx-cli:0.3.6'
implementation "com.github.hypfvieh:dbus-java:3.3.2" implementation "com.github.hypfvieh:dbus-java:3.3.2"
implementation "org.slf4j:slf4j-simple:2.0.7" implementation "org.slf4j:slf4j-simple:2.0.9"
} }
configurations.all { configurations.all {
@@ -41,15 +41,15 @@ configurations.all {
sourceSets { sourceSets {
main { main {
java { java {
srcDirs = ["${project.projectDir}/src"] srcDir "${project.projectDir}/src"
} }
resources { resources {
srcDirs = ["${project.projectDir}/res"] srcDir "${project.projectDir}/res"
} }
} }
test { test {
java { java {
srcDirs = ["${project.projectDir}/test"] srcDir "${project.projectDir}/test"
} }
} }
} }

View File

@@ -1,7 +1,8 @@
TODO TODO
==== ====
- prefix prog8 subroutines with p8s_ instead of p8_ to not let them clash with variables in the asm?? - optimize assembly output for (word1 & word2 ==0) ... (no need for stack pushes) see attemptAssignToByteCompareZero().
- [on branch: shortcircuit] investigate McCarthy evaluation again? this may also reduce code size perhaps for things like if a>4 or a<2 .... - [on branch: shortcircuit] investigate McCarthy evaluation again? this may also reduce code size perhaps for things like if a>4 or a<2 ....
- IR: reduce the number of branch instructions such as BEQ, BEQR, etc (gradually), replace with CMP(I) + status branch instruction - IR: reduce the number of branch instructions such as BEQ, BEQR, etc (gradually), replace with CMP(I) + status branch instruction
- IR: reduce amount of CMP/CMPI after instructions that set the status bits correctly (LOADs? INC? etc), but only after setting the status bits is verified! - IR: reduce amount of CMP/CMPI after instructions that set the status bits correctly (LOADs? INC? etc), but only after setting the status bits is verified!
@@ -53,12 +54,10 @@ Libraries:
- fix the problems in atari target, and flesh out its libraries. - fix the problems in atari target, and flesh out its libraries.
- c128 target: make syslib more complete (missing kernal routines)? - c128 target: make syslib more complete (missing kernal routines)?
- pet32 target: make syslib more complete (missing kernal routines)? - pet32 target: make syslib more complete (missing kernal routines)?
- c64: make the graphics.BITMAP_ADDRESS configurable (VIC banking)
Optimizations: Optimizations:
- optimize assembly output for ( word1 & word2 ==0) ... (no need for stack pushes) see attemptAssignToByteCompareZero().
- VariableAllocator: can we think of a smarter strategy for allocating variables into zeropage, rather than first-come-first-served? - VariableAllocator: can we think of a smarter strategy for allocating variables into zeropage, rather than first-come-first-served?
for instance, vars used inside loops first, then loopvars, then uwords used as pointers, then the rest for instance, vars used inside loops first, then loopvars, then uwords used as pointers, then the rest
- various optimizers skip stuff if compTarget.name==VMTarget.NAME. Once 6502-codegen is done from IR code, - various optimizers skip stuff if compTarget.name==VMTarget.NAME. Once 6502-codegen is done from IR code,

View File

@@ -5,4 +5,4 @@ org.gradle.daemon=true
kotlin.code.style=official kotlin.code.style=official
javaVersion=11 javaVersion=11
kotlinVersion=1.9.10 kotlinVersion=1.9.10
version=9.4.2 version=9.5-SNAPSHOT

View File

@@ -29,11 +29,11 @@ dependencies {
implementation project(':compiler') implementation project(':compiler')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8" implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
// implementation "org.jetbrains.kotlin:kotlin-reflect" // implementation "org.jetbrains.kotlin:kotlin-reflect"
implementation 'org.jetbrains.kotlinx:kotlinx-cli:0.3.5' implementation 'org.jetbrains.kotlinx:kotlinx-cli:0.3.6'
implementation "org.takes:takes:1.24.4" implementation "org.takes:takes:1.24.4"
implementation "javax.json:javax.json-api:1.1.4" implementation "javax.json:javax.json-api:1.1.4"
implementation "org.glassfish:javax.json:1.1.4" implementation "org.glassfish:javax.json:1.1.4"
implementation "org.slf4j:slf4j-simple:2.0.7" implementation "org.slf4j:slf4j-simple:2.0.9"
} }
configurations.all { configurations.all {
@@ -44,15 +44,15 @@ configurations.all {
sourceSets { sourceSets {
main { main {
java { java {
srcDirs = ["${project.projectDir}/src"] srcDir "${project.projectDir}/src"
} }
resources { resources {
srcDirs = ["${project.projectDir}/res"] srcDir "${project.projectDir}/res"
} }
} }
test { test {
java { java {
srcDirs = ["${project.projectDir}/test"] srcDir "${project.projectDir}/test"
} }
} }
} }

View File

@@ -28,7 +28,7 @@ class Jsonding: RsJson.Source {
class RequestParser : Take { class RequestParser : Take {
override fun act(request: Request): Response { override fun act(request: Request): Response {
val form = RqFormBase(request) val form = RqFormBase(request)
val names = form.names() // val names = form.names()
val a = form.param("a").single() val a = form.param("a").single()
val args = CompilerArguments( val args = CompilerArguments(
Path(a), Path(a),
@@ -44,7 +44,7 @@ class RequestParser : Take {
splitWordArrays = false, splitWordArrays = false,
varsHighBank = null, varsHighBank = null,
) )
val compilationResult = compileProgram(args) compileProgram(args)
return RsJson(Jsonding()) return RsJson(Jsonding())
} }
} }

View File

@@ -33,10 +33,10 @@ dependencies {
sourceSets { sourceSets {
main { main {
java { java {
srcDirs = ["${project.projectDir}/src"] srcDir "${project.projectDir}/src"
} }
resources { resources {
srcDirs = ["${project.projectDir}/res"] srcDir "${project.projectDir}/res"
} }
} }

View File

@@ -28,13 +28,14 @@ generateGrammarSource {
arguments += ["-no-listener","-no-visitor"] arguments += ["-no-listener","-no-visitor"]
} }
sourceSets { sourceSets {
main { main {
java { java {
srcDirs = ["${project.projectDir}/src"] srcDir "${project.projectDir}/src"
} }
antlr { antlr {
srcDirs = ["${project.projectDir}/antlr"] srcDirs = ["${project.projectDir}/antlr"]
} }
} }
} }

View File

@@ -35,10 +35,10 @@ dependencies {
sourceSets { sourceSets {
main { main {
java { java {
srcDirs = ["${project.projectDir}/src"] srcDir "${project.projectDir}/src"
} }
resources { resources {
srcDirs = ["${project.projectDir}/res"] srcDir "${project.projectDir}/res"
} }
} }