Skip to content

float a = 1+1; costs 17 bytecode. #400

@revalo

Description

@revalo
int bc_base = Clock.getBytecodeNum();
float a = 1 + 1;
System.out.println("Bytecode Cost: " + (Clock.getBytecodeNum() - bc_base));

This prints out 17, which I feel shouldn't be the case for an addition.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions