-
Notifications
You must be signed in to change notification settings - Fork 83
Finished CDL session 3 work #153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
goptarov
wants to merge
7
commits into
rosedu:cdl-65
Choose a base branch
from
goptarov:cdl-65-dev
base: cdl-65
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
5339cf3
Fixed dynamic-linking.ro.md
goptarov ffe7076
Started work on helloworld.md
goptarov dd0bb80
Finished helloworld.md
goptarov 1e700f6
Fixed dynamic-linking.ro.md md syntax
goptarov a24779f
Fixed md syntax for dynamic-linking.ro.md
goptarov 0d7c7a3
Final tweaks for dynamic-linking.ro.md
goptarov 393d814
Merge branch 'main' into cdl-65-dev
goptarov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,250 @@ | ||
## Helloworld Programs | ||
|
||
 | ||
|
||
We list below Helloworld programs for different programming languages, i.e. programs that print "Hello, World!". | ||
The specified compiler or interpreter is requried for each programming languages. | ||
|
||
The table below smmarizes the programs: | ||
|
||
| Language | Language (Spec) Site | Section | Build / Run Toolchain | Debian / Ubuntu Packages | | ||
|----------|----------------------|---------|-----------------------|--------------------------| | ||
| C | [The Standard - C](https://www.iso-9899.info/wiki/The_Standard) | [C](#c) | GCC | `build-essential` | | ||
| C++ | [The Standard - C++](https://isocpp.org/std/the-standard) | [C++](#c++) | GCC / G++ | `build-essential`, `g++` | | ||
| Dlang | [D Programming Language: Home](https://dlang.org/) | [Dlang](#dlang) | GCC / GDC | `build-essential`, `gdc` | | ||
| Go | [The Go Programming Language](https://go.dev/) | [Go](#go) | Go | `golang` | | ||
| Rust | [Rust Programming Language](https://www.rust-lang.org/) | [Rust](#rust) | Rust (Crate) | `rustlang` | | ||
| Java | [Java Programming Language](https://docs.oracle.com/javase/8/docs/technotes/guides/language/) | [Java](#java) | JDK | `openjdk-17-jdk` | | ||
| x86_64 assembly | [x86 and amd64 instruction reference](https://www.felixcloutier.com/x86/) | [x86_64 Assembly](#x86_64-assembly) | GCC / GAS | `build-essential` | | ||
| ARM64 assembly | [Arm A64 Instruction Set Architecture](https://developer.arm.com/documentation/ddi0596/latest/) | [ARM64 Assembly](#arm64-assembly) | GCC / GAS (AArch64) | `build-essential` | | ||
| Bash | [Bash Reference Manual](https://www.gnu.org/s/bash/manual/bash.html) | [Bash](#bash) | Bash | `bash` | | ||
| Python | [Welcome to Python.org](https://www.python.org/) | [Python](#python) | Python | `python` | | ||
| Ruby | [Ruby Programming Language](https://www.ruby-lang.org/en/) | [Ruby](#ruby) | Ruby | `ruby` | | ||
| PHP | [PHP: Hypertext Preprocessor](https://www.php.net/) | [PHP](#php) | PHP | `php` | | ||
| Perl | [The Perl Programming Language](https://www.perl.org/) | [Perl](#perl) | Perl | `perl` | | ||
| Lua | [The Programming Language Lua](https://www.lua.org/) | [Lua](#lua) | Lua | `lua` | | ||
|
||
## C | ||
```C | ||
#include <stdio.h> | ||
|
||
int main(void) | ||
{ | ||
puts("Hello, World!"); | ||
return 0; | ||
} | ||
``` | ||
Build with: | ||
```console | ||
gcc -Wall -o helloworld helloworld.c | ||
``` | ||
Run with: | ||
```console | ||
./helloworld | ||
``` | ||
## C++ | ||
```c++ | ||
#include <iostream> | ||
int main() | ||
{ | ||
std::cout << "Hello, World!" << std::endl; | ||
return 0; | ||
} | ||
``` | ||
Build with: | ||
```console | ||
g++ -Wall -o helloworld helloworld.cpp | ||
``` | ||
Run with: | ||
```console | ||
./helloworld | ||
``` | ||
## Dlang | ||
|
||
```dlang | ||
import std.stdio; | ||
|
||
void main() | ||
{ | ||
writeln("Hello, World!"); | ||
} | ||
``` | ||
|
||
Build with: | ||
|
||
```console | ||
gdc -Wall -o helloworld helloworld.cpp | ||
``` | ||
|
||
Run with: | ||
|
||
```console | ||
./helloworld | ||
``` | ||
|
||
## Go | ||
|
||
```go | ||
package main | ||
|
||
import "fmt" | ||
|
||
func main() { | ||
fmt.Println("Hello, World!") | ||
} | ||
``` | ||
Build and run with: | ||
|
||
```console | ||
go run helloworld.go | ||
``` | ||
|
||
## Rust | ||
|
||
```rs | ||
fn main() { | ||
println!("Hello, World"); | ||
} | ||
``` | ||
|
||
Build with: | ||
|
||
```console | ||
rustc hello.rs | ||
``` | ||
|
||
Run with: | ||
|
||
```console | ||
./helloworld | ||
``` | ||
|
||
## Java | ||
|
||
```java | ||
public class HelloWorld { | ||
public static void main(String[] args) { | ||
System.out.println("Hello, World!"); | ||
} | ||
} | ||
``` | ||
|
||
Build with: | ||
|
||
```console | ||
javac HelloWorld.java | ||
``` | ||
|
||
Run with: | ||
|
||
```console | ||
java HelloWorld | ||
``` | ||
|
||
## x86_64 Assembly | ||
|
||
```as | ||
``` | ||
|
||
Build with: | ||
|
||
```console | ||
TODO | ||
``` | ||
Run with: | ||
|
||
```console | ||
./helloworld | ||
``` | ||
|
||
TODO | ||
|
||
## ARM64 Assembly | ||
|
||
```as | ||
``` | ||
|
||
Build with: | ||
|
||
```console | ||
TODO | ||
``` | ||
|
||
Run with: | ||
|
||
```console | ||
./helloworld | ||
``` | ||
|
||
## Bash | ||
|
||
```bash | ||
echo "Hello, World!" | ||
``` | ||
Run with: | ||
|
||
|
||
```console | ||
bash helloworld.sh | ||
``` | ||
|
||
## Python | ||
|
||
```py | ||
print("Hello, World!") | ||
``` | ||
|
||
Run with: | ||
|
||
```console | ||
python helloworld.py | ||
``` | ||
|
||
## Ruby | ||
|
||
```rb | ||
puts "Hello, World!" | ||
``` | ||
|
||
Run with: | ||
|
||
```console | ||
ruby helloworld.rb | ||
``` | ||
## PHP | ||
|
||
```php | ||
<?php | ||
echo "Hello, World!" | ||
?> | ||
``` | ||
|
||
Run with: | ||
|
||
```console | ||
./helloworld | ||
``` | ||
|
||
## Perl | ||
|
||
```pl | ||
print("Hello, World!\n") | ||
``` | ||
|
||
Run with: | ||
|
||
```console | ||
perl helloworld.pl | ||
``` | ||
|
||
## Lua | ||
|
||
```lua | ||
print("Hello, World!") | ||
``` | ||
|
||
Run with: | ||
|
||
```console | ||
lua helloworld.lua | ||
``` |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You missed one backtick at
__libc_start_main
.