Skip to content

Conversation

@karkhaz
Copy link
Collaborator

@karkhaz karkhaz commented May 23, 2017

goto-cc now accepts the following flags:

-mthumb{,-interwork}
-mcpu=PROC
-march=PROC
-mtune=PROC

where PROC is one of the (many) processors that GCC accepts for those
three arguments.

Supplying one or more of these flags causes goto-cc to switch to the
mode of that architecture, i.e. by changing output code format, sizes of
pointers and integers, etc. Thus, passing (for example) -mcpu=cortex-a15
is enough to make goto-cc generate ARM-32 code; there is no longer any
need to pass -m32.

CR: https://cr.amazon.com/r/7156058/

Copy link
Collaborator

@tautschnig tautschnig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly nit-picking.

.gitignore Outdated
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd get rid of this, more below.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Name the output file "linked-object.gb" as the .gb suffix will ensure 1) the gitignore matches and 2) make clean removes it.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possibly add "on a 64-bit platform".

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See above: add .gb

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See above: .gb

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See above: .gb

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use goto. Well, we should actually codify that in the CODING_STANDARD.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No space around =, ==

goto-cc now accepts the following flags:

-mthumb{,-interwork}
-mcpu=PROC
-march=PROC
-mtune=PROC

where PROC is one of the (many) processors that GCC accepts for those
three arguments.

Supplying one or more of these flags causes goto-cc to switch to the
mode of that architecture, i.e. by changing output code format, sizes of
pointers and integers, etc. Thus, passing (for example) -mcpu=cortex-a15
is enough to make goto-cc generate ARM-32 code; there is no longer any
need to pass -m32.
@kroening kroening merged commit 5e6b593 into diffblue:master May 23, 2017
@karkhaz karkhaz deleted the kk branch May 23, 2017 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants