MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / objdump

Method objdump

lib/compilers/cc65.ts:99–140  ·  view source on GitHub ↗
(
        outputFilename: string,
        result: CompilationResult,
        maxSize: number,
        intelAsm: boolean,
        demangle: boolean,
        staticReloc: boolean,
        dynamicReloc: boolean,
        filters: ParseFiltersAndOutputOptions,
    )

Source from the content-addressed store, hash-verified

97 }
98
99 override async objdump(
100 outputFilename: string,
101 result: CompilationResult,
102 maxSize: number,
103 intelAsm: boolean,
104 demangle: boolean,
105 staticReloc: boolean,
106 dynamicReloc: boolean,
107 filters: ParseFiltersAndOutputOptions,
108 ) {
109 const res = await super.objdump(
110 outputFilename,
111 result,
112 maxSize,
113 intelAsm,
114 demangle,
115 staticReloc,
116 dynamicReloc,
117 filters,
118 );
119
120 const dirPath = path.dirname(outputFilename);
121 const nesFile = path.join(dirPath, 'example.nes');
122 if (await utils.fileExists(nesFile)) {
123 await addArtifactToResult(res, nesFile, ArtifactType.nesrom);
124 }
125
126 if (result.compilationOptions?.includes('c64') && (await utils.fileExists(outputFilename))) {
127 if (outputFilename.endsWith('.prg')) {
128 await addArtifactToResult(res, outputFilename, ArtifactType.c64prg);
129 } else {
130 await addArtifactToResult(
131 res,
132 outputFilename,
133 ArtifactType.c64prg,
134 path.basename(outputFilename) + '.prg',
135 );
136 }
137 }
138
139 return res;
140 }
141
142 override async doBuildstepAndAddToResult(
143 result: CompilationResult,

Callers

nothing calls this directly

Calls 2

addArtifactToResultFunction · 0.85
fileExistsMethod · 0.80

Tested by

no test coverage detected