Skip to content

Commit cd49c79

Browse files
Add Assembly, F#, Kotlin
1 parent fc19642 commit cd49c79

File tree

8 files changed

+81
-1
lines changed

8 files changed

+81
-1
lines changed

Assembly/hello.asm

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
global _main
2+
extern _printf
3+
4+
section .text
5+
_main:
6+
push message
7+
call _printf
8+
add esp, 4
9+
message:
10+
db 'Hello World', 10, 0

Assembly/readme.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Assembly Hello World
2+
3+
Assembly is the lowest-level language that represents machine language in human-readable form.
4+
5+
# run the program
6+
7+
You need to install [codeblocks](http://www.codeblocks.org/downloads/binaries/) first and download [NASM](https://www.nasm.us/).
8+
9+
Extract NASM Installer in ``C:\Program Files (x86)\CodeBlocks\MinGW\bin``
10+
11+
For run the program, you can use the command:
12+
13+
```
14+
nasm -f win32 hello.asm -o hello.obj
15+
```
16+
Generate Exe file using GCC
17+
```
18+
gcc hello.obj -o hello.exe
19+
```
20+
Run Exe file

Delphi/readme.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Delphi Hello World
2+
3+
Delphi is both an object-oriented programming language and an integrated development environment (IDE) for this language.
4+
5+
# run the program
6+
7+
you need to install Delphi .
8+
9+
you need to install Matlab, you need a license but you get a free product trial here : [https://www.embarcadero.com/products/delphi](https://www.embarcadero.com/products/delphi)

Erlang/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Erlang is a programming language, supporting several paradigms: concurrent, real
44

55
# run the program
66

7-
you need to install Scala .
7+
you need to install Erlang.
88

99
you can found how to install Erlang at: [https://riptutorial.com/erlang/topic/4483/installation](https://riptutorial.com/erlang/topic/4483/installation)
1010

F#/hello.fsx

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
printfn "Hello World"

F#/readme.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# F# Hello World
2+
3+
F# is a functional, imperative, object-oriented programming language for the .NET platform
4+
5+
# run the program
6+
7+
You need to install .NET first.
8+
9+
you can found how to install .NET at: [https://dotnet.microsoft.com/en-us/download](https://dotnet.microsoft.com/en-us/download)
10+
11+
For run the program, you can use the command:
12+
13+
```
14+
dotnet fsi hello.fsx
15+
```

Kotlin/hello.kt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fun main(args: Array<String>){
2+
println("Hello World")
3+
}

Kotlin/readme.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Kotlin Hello World
2+
3+
Kotlin is a functional, object-oriented programming language with dynamic typing that compiles natively for the Java Virtual Machine, JavaScript, and multiple platforms.
4+
5+
you can found Kotlin at: [https://kotlinlang.org/docs/home.html](https://kotlinlang.org/docs/home.html)
6+
7+
# run the program
8+
9+
You need to install kotlin first.
10+
11+
you can found how to install kotlin at: [https://github.com/JetBrains/kotlin/releases/tag/v1.8.10](https://github.com/JetBrains/kotlin/releases/tag/v1.8.10)
12+
13+
Compile the application, you can use the command:
14+
15+
```
16+
kotlinc hello.kt -include-runtime -d hello.jar
17+
```
18+
19+
For run the program, you can use the command:
20+
```
21+
java -jar hello.jar
22+
```

0 commit comments

Comments
 (0)