# US 10,956,138 B1 · Automatic configuration of an execution environment

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 10,956,138 B1
- Document ID: US10956138B1
- Status: Granted
- Kind: B1
- Application number: 16/169,713
- Filed: 2018-10-24
- Granted: 2021-03-23
- Earliest claimed: 2017-10-25
- Assignees: Moddable Tech, Inc.
- Applicants: Moddable Tech, Inc.
- Inventors: Patrick Soquet
- Web page: https://patentgrep.com/patent/US10956138B1

## CPC

- G06F 8/4435: {Detection or removal of dead or redundant code}
- G06F 8/31: {Programming languages or programming paradigms}
- G06F 8/427: {Parsing}
- G06F 9/44505: {Configuring for program initiating, e.g. using registry, configuration files}
- G06F 9/5016: {the resource being the memory}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computing device and automatic method for reducing memory usage in a device having an execution environment, such as one using an interpretive scripting engine. Application code is analyzed to determine unused features. Based upon this analysis, a build process is configured to omit the unused features. Then, the execution environment is built for the application code that excludes features not used by the application code. The application code and the execution environment can then be loaded into a deployment device for execution of the application code by the execution environment.

## Claims

### Claim 1

An automatic method performed in a computer system comprising the following steps:
a) analyzing application code to determine excluded features of a scripting language execution environment corresponding to unused features of the scripting language execution environment unused in application code, wherein the application code is ECMAScript, the excluded features including at least one object of the execution environment of the scripting language execution environment including at least one object of the scripting language execution environment, wherein the scripting language execution environment is configured to execute the ECMAScript interpretive language;
b) configuring a build process to exclude excluded features of the scripting language execution environment corresponding to the unused features of the scripting language execution environment unused in the application code; and
c) building a modified scripting language execution environment for the application code without the excluded features of the scripting language execution environment corresponding to the unused features of the scripting language execution environment unused in the application code.

### Claim 2 (depends on 1)

The method of claim 1 further comprising:
a) loading the application code and the modified scripting language execution environment into a deployment device.

### Claim 3 (depends on 1)

The method of claim 1 wherein the excluded features further comprise at least one of the following:
a) a function;
b) a class; and
c) a language construct.

### Claim 4 (depends on 3)

The method of claim 3 wherein the excluded features further comprise at least one of the following:
a) a module; and
b) a virtual machine op-code.

### Claim 5 (depends on 1)

The method of claim 1 wherein the step of configuring comprises:
a) generating a configuration file which specifies the excluded features of the scripting language execution environment.

### Claim 6 (depends on 5)

The method of claim 5 wherein the step of building comprises:
a) reading the configuration file and building the executable form without the excluded features of the scripting language execution environment as specified by the configuration file.

### Claim 7 (depends on 6)

The method of claim 6 wherein the 1 configuration file comprises command line options.

### Claim 8 (depends on 5)

The method of claim 5 wherein the configuration file comprises:
a) source code.

### Claim 9 (depends on 8)

The method of claim 8 wherein the source code comprises:
a) at least one directive to exclude any unused module of the scripting language execution environment.

### Claim 10 (depends on 1)

The method of claim 1 wherein the step of configuring comprises:
a) generating a configuration file which is used to build the modified scripting language execution environment.

### Claim 11 (depends on 10)

The method of claim 10 wherein the step of building the modified scripting language execution environment comprises the step of:
a) building the modified scripting language execution environment using the configuration file.

### Claim 12 (depends on 1)

The method of claim 1 further comprising the step of:
a) receiving input to include specified objects in the modified scripting language execution environment; and
b) wherein the step of building the modified scripting language execution environment comprises the step of including the specified objects in the modified scripting language execution environment.

### Claim 13 (depends on 1)

The method of claim 1 further comprising the step of:
a) receiving input to exclude specified objects in the modified scripting language execution environment; and
b) wherein the step of building the modified scripting language execution environment comprises the step of excluding the specified objects in the modified scripting language execution environment.

### Claim 14 (depends on 1)

A computer readable product comprising the modified scripting language execution environment for storage in a deployment device formed by the method of claim 1.

### Claim 15 (depends on 14)

The computer readable product of claim 14 further comprising the application code for storage in a deployment device.

### Claim 16 (depends on 1)

The computing device of claim 1 wherein the configuration generator further comprises:
a) a generator for generating a configuration file which specifies the excluded features of the scripting language execution environment.

### Claim 17 (depends on 16)

The computing device of claim 16 wherein the builder further comprises:
a) a reader for reading the configuration file and building the executable form without the excluded features of the scripting language execution environment as specified by the configuration file.

### Claim 18 (depends on 17)

The computing device of claim 17 wherein the configuration file comprises:
a) source code.

### Claim 19 (depends on 18)

The computing device of claim 18 wherein the source code comprises:
a) at least one directive to exclude any unused module of the scripting language execution environment.

### Claim 20 (depends on 18)

The computing device of claim 18 wherein the configuration generator further comprises:
a) a generator for generating a configuration file which is used to build the modified scripting language execution environment.

### Claim 21 (depends on 16)

The computing device of claim 16 wherein the configuration file comprises command line options.

### Claim 22 (depends on 1)

The computing device of claim 1 further comprising:
a) a receiver for receiving input to cause the configuration generator to include specified objects in the modified scripting language execution environment; and
b) wherein the builder further comprises a configurator for building the modified scripting language execution environment with the specified objects.

### Claim 23 (depends on 1)

The computing device of claim 1 further comprising:
a) a receiver for receiving input to cause the configuration generator to exclude specified objects in the modified scripting language execution environment; and
b) the builder further comprising a remover for building the modified scripting language execution environment without the specified objects.

### Claim 24

A computing device comprising:
a) a central processing unit (CPU);
b) an analyzer for processing and determining excluded features of an scripting language execution environment corresponding to unused features of the scripting language execution environment unused in application code, wherein the application code is ECMAScript, the excluded features of the scripting language execution environment including at least one object of the scripting language execution environment, wherein the scripting language execution environment is configured to execute the ECMAScript interpretive language;
c) a configuration generator coupled to the analyzer for configuring a builder to exclude the excluded features of the scripting language execution environment corresponding to the unused features of the scripting language execution environment unused in the application code; and
d) the builder coupled to the configuration generator for building a modified scripting language execution environment for the application code without the excluded features of the execution environment corresponding to the unused features of the scripting language execution environment unused in the application code.

### Claim 25 (depends on 24)

The computing device of claim 24 wherein the builder further comprises:
a) an excluder for excluding the excluded features of the 2 scripting language execution environment; and
b) a performer for building the modified scripting language execution environment into an executable form without the excluded features of the scripting language execution environment.

### Claim 26 (depends on 25)

The computing device of claim 25 wherein the excluded features further comprise at least one of the following:
a) a function;
b) a class; and
c) a language construct.

### Claim 27 (depends on 26)

The computing device of claim 26 wherein the excluded features further comprise at least one of the following:
a) a module; and
b) a virtual machine op-code.
