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

Method objdump

lib/compilers/madpascal.ts:157–178  ·  view source on GitHub ↗
(
        outputFilename: string,
        result: any,
        maxSize: number,
        intelAsm: boolean,
        demangle: boolean,
        staticReloc: boolean | undefined,
        dynamicReloc: boolean,
        filters: ParseFiltersAndOutputOptions,
    )

Source from the content-addressed store, hash-verified

155 }
156
157 override async objdump(
158 outputFilename: string,
159 result: any,
160 maxSize: number,
161 intelAsm: boolean,
162 demangle: boolean,
163 staticReloc: boolean | undefined,
164 dynamicReloc: boolean,
165 filters: ParseFiltersAndOutputOptions,
166 ) {
167 const tmpDir = path.dirname(outputFilename);
168 const listingFilename = this.getListingFilename(tmpDir, this.outputFilebase);
169
170 if (!(await utils.fileExists(listingFilename))) {
171 result.asm = '<No output file ' + listingFilename + '>';
172 return result;
173 }
174
175 result.asm = this.postProcessObjdumpOutput(await fs.readFile(listingFilename, 'utf8'));
176
177 return result;
178 }
179
180 override getTargetFlags(): string[] {
181 return [`-target:${c_value_placeholder}`];

Callers

nothing calls this directly

Calls 4

getListingFilenameMethod · 0.95
fileExistsMethod · 0.80
readFileMethod · 0.80

Tested by

no test coverage detected