> -----Original Message----- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Mahdi Moradmand > Badie > Sent: Wednesday, June 22, 2016 5:21 AM > To: dev at 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 at hdi Mor at dm@nd B at die