Skip to content

added nasm#75

Open
sinamhdv wants to merge 1 commit into
unikraft:masterfrom
sinamhdv:add-nasm
Open

added nasm#75
sinamhdv wants to merge 1 commit into
unikraft:masterfrom
sinamhdv:add-nasm

Conversation

@sinamhdv
Copy link
Copy Markdown
Contributor

No description provided.

@razvand
Copy link
Copy Markdown
Contributor

razvand commented Sep 24, 2023

Thanks, @sinamhdv . Please format and sign off your commit according to Unikraft's contributor guidelines.

Please also add a README.md similar to the one for the http_server in C.

@sinamhdv sinamhdv force-pushed the add-nasm branch 2 times, most recently from df44702 to 0afd0e6 Compare September 24, 2023 20:11
Copy link
Copy Markdown
Contributor

@razvand razvand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @sinamhdv. See my comments.

Comment thread nasm/README.md
Comment thread nasm/README.md Outdated
Comment thread nasm/README.md Outdated
Comment thread nasm/README.md Outdated
Comment thread nasm/README.md Outdated
Comment thread nasm/README.md
@razvand
Copy link
Copy Markdown
Contributor

razvand commented Sep 24, 2023

@sinamhdv , also add a line mentioning how to check everything worked OK:

objdump -D -b binary -m i386 -M intel sample_code

@razvand
Copy link
Copy Markdown
Contributor

razvand commented Sep 24, 2023

20 HP, 20 more when this is submitted

@razvand razvand self-assigned this Sep 24, 2023
@razvand razvand added the enhancement New feature or request label Sep 24, 2023
@sinamhdv sinamhdv force-pushed the add-nasm branch 2 times, most recently from 4b7edeb to 30419ca Compare September 24, 2023 21:18
@sinamhdv sinamhdv requested a review from razvand September 24, 2023 21:19
Comment thread nasm/README.md Outdated
Comment thread nasm/README.md Outdated
Comment thread nasm/README.md Outdated
Comment thread nasm/README.md
Comment thread nasm/README.md Outdated
Comment thread nasm/README.md Outdated
added root directory, binary, and libraries for nasm to the dynamic-apps that can be run in bincompat mode.

Signed-off-by: Sina Mahdavi <sinamhdv@gmail.com>
Copy link
Copy Markdown
Contributor

@razvand razvand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the commit message to:

Add Nasm (Netwide Assembler)

Add Nasm root directory.  It consists of the `nasm` binary, requried libraries and `README.md`. It is to be used with Unikraft in bincompat mode.

Comment thread nasm/README.md
```console
objdump -D -b binary -m i386 -M intel,x86-64 sample_code
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove extra white line at the end.

Comment thread nasm/README.md
@@ -0,0 +1,43 @@
# Netwide Assembler

This is the (Nasm) Netwide assembler and it is meant to be used in the binary compatibility mode of Unikraft.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This is the (Nasm) Netwide assembler and it is meant to be used in the binary compatibility mode of Unikraft.
This is Nasm (_Netwide assembler_).
it is meant to be used in the binary compatibility mode of Unikraft.

Comment thread nasm/README.md
- `lib/` & `lib64/`: the required libraries for Nasm

## Extract Dynamic Libraries

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add wording. Say: "Use the extract.sh script to extract the required dynamic libraries for the binary:"

Comment thread nasm/README.md
../extract.sh usr/bin/nasm
```

output:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add wording.

Comment thread nasm/README.md
```

## Run on Linux

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add wording.

Comment thread nasm/README.md
```

## Run on Unikraft

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add wording.

@StefanJum StefanJum mentioned this pull request Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: In Progress
Status: In Progress

Development

Successfully merging this pull request may close these issues.

2 participants