Investigate unused opcodes

Aperta
#2,233 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
c, erlang

Direzione di ricerca

Start by searching the VM source and opcode definitions for OP_ALLOCATE_ZERO, OP_KILL, OP_PUT, OP_MAKE_FUN2, and OP_BS_ADD, then check whether Erlang compiler output or existing tests can exercise them. The issue names no files or tests, so first identify the opcode handlers and test entry points. Done means establishing whether each opcode is still used and, if removal is appropriate, documenting or testing that conclusion.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

None of our tests are generating code making use of the following opcodes:

X_OPCODE(OP_ALLOCATE_ZERO, 14, allocate_zero)
X_OPCODE(OP_KILL, 17, kill)
X_OPCODE(OP_PUT, 71, put)
X_OPCODE(OP_MAKE_FUN2, 103, make_fun2)
X_OPCODE(OP_BS_ADD, 111, bs_add)

Are they still in use? Should we remove them?

Lingua principale
Erlang
Stelle
2.3k
Fork
171
Merge medio
5g 11h
PR unite (30g)
19

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di atomvm/AtomVM

Tutte le issue di atomvm/AtomVM

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.