Skip to content

Commit

Permalink
Bump 2.0.2 final release with issue notes.
Browse files Browse the repository at this point in the history
  • Loading branch information
deleterium committed Aug 6, 2022
1 parent c1a122d commit 85536eb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/1.2-Preprocessor-directives.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ Special features used by compiler.
* 0: No optimization.
* 1: Very basic optimization, just remove silly and unused code.
* 2: **Default**. Safely change and/or delete code for smarter outcome.
* 3: Use a VM to trace variable's content and remove redundant code. Beta feature, to be included as default once more tests are done. Can generate a good optimization reducing the number of calls to API functions.
* 3: Use a VM to trace variable's content and remove redundant code. Beta feature, to be included as default once more tests are done. Can generate a good optimization reducing the number of calls to API functions. SEE ISSUE #25 and make a diff with the optimized code to check if affected.
* 4: Dangerous optimizations no well tested. Result must be inspected by developer.
* `#pragma reuseAssignedVar [true/false/1/0/]`: When set, compiler will try to use a variable on left side of and `Assignment` as a register. If variable is also used on right side, the compiler will not reuse it. This can save one assembly instruction for every expression used! Default value is `true` and it is highly recomended to maintain it active.
* `#pragma version VALUE`: Informs which compiler's version the code was developed. This is optional but can help future generations. VALUE can be any string or remarks.
Expand Down
4 changes: 3 additions & 1 deletion docs/1.5-Built-in-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ void sendMessage(long * buffer, long accountId);
void sendAmountAndMessage(long amount, long * buffer, long accountId);
void sendAmountAndMessageFx(fixed amount, long * buffer, long accountId);
void sendBalance(long accountId);
void sendQuantity(long quantity, long assetId, long accountId);
// DO NOT USE ON v2.0.x (issue #24)
// void sendQuantity(long quantity, long assetId, long accountId);
void sendQuantityAndAmount(long quantity, long assetId, long amount, long accountId);
void sendQuantityAndAmountFx(long quantity, long assetId, fixed amount, long accountId);

Expand Down Expand Up @@ -247,6 +248,7 @@ Same restrictions from `sendAmount` apply.
Contract will halt execution (no gas).

### sendQuantity
DO NOT USE ON v2.0.x. See issue #24.
* Prototype:
`void sendQuantity(long quantity, long assetId, long accountId);`
* Description:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "smartc-signum-compiler",
"version": "2.0.1",
"version": "2.0.2",
"description": "C Compiler for smart contracts on Signum network",
"main": "dist/smartc.js",
"types": "dist/smartc.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/smartc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class SmartC {
typesDefinitions: [],
// Default configuration for compiler
Config: {
compilerVersion: '2.0.1',
compilerVersion: '2.0.2',
maxAuxVars: 3,
maxConstVars: 0,
optimizationLevel: 2,
Expand Down

0 comments on commit 85536eb

Please sign in to comment.