* [dpdk-dev] Assembly code
@ 2016-06-21 21:21 Mahdi Moradmand Badie
2016-06-22 3:27 ` Tan, Jianfeng
0 siblings, 1 reply; 2+ messages in thread
From: Mahdi Moradmand Badie @ 2016-06-21 21:21 UTC (permalink / raw)
To: dev
Dear All,
I used the default format of Makefile (as follow) which is available in the
examples,
I was wondering how I could generate the assembly (main.s) related to my
main.c, via Makefile.
PS. using -S doesn't work :(
ifeq ($(RTE_SDK),)
$(error "Please define RTE_SDK environment variable")
endif
# Default target, can be overriden by command line or environment
RTE_TARGET ?= x86_64-native-linuxapp-gcc
include $(RTE_SDK)/mk/rte.vars.mk
# binary name
APP = Mahdi_test
INC += $(wildcard include/*.h)
# all source are stored in SRCS-y
SRCS-y := main.c
CFLAGS += $(WERROR_FLAGS) -I $(SRCDIR)/include -I/usr/local/include
EXTRA_CFLAGS += -O3
EXTRA_CFLAGS += -Wno-error
EXTRA_CFLAGS += -std=c99
# rte.extapp.mk : External application
include $(RTE_SDK)/mk/rte.extapp.mk
--
M@hdi Mor@dm@nd B@die
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-dev] Assembly code
2016-06-21 21:21 [dpdk-dev] Assembly code Mahdi Moradmand Badie
@ 2016-06-22 3:27 ` Tan, Jianfeng
0 siblings, 0 replies; 2+ messages in thread
From: Tan, Jianfeng @ 2016-06-22 3:27 UTC (permalink / raw)
To: Mahdi Moradmand Badie, dev
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Mahdi Moradmand
> Badie
> Sent: Wednesday, June 22, 2016 5:21 AM
> To: dev@dpdk.org
> Subject: [dpdk-dev] Assembly code
>
> Dear All,
>
> I used the default format of Makefile (as follow) which is available in the
> examples,
> I was wondering how I could generate the assembly (main.s) related to my
> main.c, via Makefile.
The output file is named main.o. If you add line like " CFLAGS += -S", you can find the assembly code there.
Thanks,
Jianfeng
>
> PS. using -S doesn't work :(
>
> ifeq ($(RTE_SDK),)
> $(error "Please define RTE_SDK environment variable")
> endif
>
> # Default target, can be overriden by command line or environment
> RTE_TARGET ?= x86_64-native-linuxapp-gcc
>
> include $(RTE_SDK)/mk/rte.vars.mk
>
> # binary name
> APP = Mahdi_test
>
> INC += $(wildcard include/*.h)
>
> # all source are stored in SRCS-y
> SRCS-y := main.c
>
> CFLAGS += $(WERROR_FLAGS) -I $(SRCDIR)/include -I/usr/local/include
>
> EXTRA_CFLAGS += -O3
> EXTRA_CFLAGS += -Wno-error
> EXTRA_CFLAGS += -std=c99
>
> # rte.extapp.mk : External application
> include $(RTE_SDK)/mk/rte.extapp.mk
>
> --
> M@hdi Mor@dm@nd B@die
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-06-22 3:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-21 21:21 [dpdk-dev] Assembly code Mahdi Moradmand Badie
2016-06-22 3:27 ` Tan, Jianfeng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).