From 22128f91fa23bb65106dc5e66f3a8f115ce9ab76 Mon Sep 17 00:00:00 2001 From: cusma Date: Fri, 25 Oct 2024 17:41:51 +0200 Subject: [PATCH] doc: compilers recommendations --- ARCs/arc-0065.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/ARCs/arc-0065.md b/ARCs/arc-0065.md index 830c6c252..70ba8ec58 100644 --- a/ARCs/arc-0065.md +++ b/ARCs/arc-0065.md @@ -128,18 +128,23 @@ regexp). It is **NOT RECOMMENDED** to use on the `message` field to retrieve errors. +### AVM Compilers + +AVM compilers (and related tools) **SHOULD** provide two error compiling options: + +1. ARC-65 as **default**; +1. ARC-64 as fallback, if compiled bytecode size exceeds the AVM limits. + ## Rationale This convention for AVM run time errors presents the following PROS and CONS. -### PROS - +**PROS:** - No additional artifacts required to return informative run time errors; - Errors are directly returned in the Algod API response, which can be filtered with the specified error regexp. -### CONS - +**CONS:** - Errors consume program bytecode size. ## Security Considerations